A "package repository" (AKA "repo") is a large online bank of program binaries-- each UNIX-like operating system has its own repo, and each type of package manager (what is used to access package repos and install software from them) has a different way of using it. Let's go through a few.

Trisquel GNU/Linux (Ubuntu)

To install a program from the terminal in Trisquel (or Ubuntu), run the command

$ sudo apt-get install $PACKAGE

... where "$PACKAGE" is the program you want to install.

If it doesn't work, run

$ sudo apt-get update && sudo apt-get upgrade

... which updates your repo metadata and upgrades any software than can be upgraded. Then, you should be good to go with apt-get install again.

Parabola GNU/Linux (Arch)

In Parabola, you can just give this a shot:

$ sudo pacman -S $PACKAGE

If it doesn't work, run

$ sudo pacman -Syu

to update metadata and upgrade packages. You're good to go!

LibertyBSD (OpenBSD)

In LBSD, you need to make sure you have your repo URL configured-- either through the environment variable $PKG_PATH or by editing /etc/pkg.conf. For example, you can set it to the amd64 repo for 6.1 with:

$ export PKG_PATH=ftp://ftp.libertybsd.net/pub/LibertyBSD/6.1/packages/amd64

(Edit the URL as needed-- you know, to switch out amd64 with i386, so on and so forth.)

Now, to install packages, just run:

# pkg_add -v $PACKAGE

The # means that you use either sudo, doas, or su to get root access when running the command.

You're set! Cheers!

Page last modified on March 09, 2018, at 07:58 AM
Powered by PmWiki + ☭ + ♥