====== Installing Binary Packages ====== ===== pkgin ===== [[http://pkgin.net/|pkgin]] is the binary package manager for MINIX 3. This page describes how to use it. Software packages also can built from their source code. See [[.:installingsourcepackages|Installing Source Packages]] for details. ===== Using pkgin ===== **First**, you will need to fetch the package list and populate the package database: # pkgin update This step can be re-run to update the package list. If you would like to install a package, you can run: # pkgin install git-base # pkgin install binutils # pkgin install clang More than one at a time: # pkgin in perl python27 Also, there is a way to install everything: # pkgin_all {i} Be sure to have enough [[.:workingwithstorage|free space]] if you install all the packages. You will probably need at least 25 GB. //Pkgin// will estimate the space needed when it asks for your confirmation. If you would like to search for a specific package, you can run: # pkgin search git As the repository is now very large, we also have a few packages sets for usual MINIX tasks. To view and install them you can use: # pkgin_sets To see a list of all available packages, you can run: # pkgin available You can also use //more// to pause between pages: # pkgin available | more If you would like to see all the available //pkgin// actions, you can run: # pkgin Additionally, you can study the man. page: # man 1 pkgin ===== Installing from the CD ===== Many packages are available directly from the CD. This can be helpful in some circumstances, and is generally faster than downloading from the online repository. To install packages from the CD, you can use //pkgin_cd//. This command uses the CD-ROM as the package repository. It is a wrapper for //pkgin// and therefore supports the same commands. To begin using //pkgin_cd//: - Start your installed system - Insert the CD - Type //pkgin_cd// Unlike //pkgin//, to install all packages you need: # pkgin_cd in $( pkgin_cd av | awk '{ print $1 }' ) To remove the CD safely and use the online package repository: - Type //umount /mnt// to stop using the CD - Remove the CD - Type //pkgin update// Note this will not update previously installed package, to replace them with the newer version you have to do this: # pkgin full-upgrade That's all! Now you can try out the new packages. We are awaiting for your feedback, even if it 'just works'. We need to update our available list of applications. You can send us a mail directly, post to the MINIX google group or simply update [[:DevelopersGuide:PkgsrcStatus]]. ===== Notes ===== //Pkgin// will install the software in ///usr/pkg/bin//, which is already in your PATH by default.