

GO INSTALLPKG INSTALL
Now install the bsd-games package from the DVD again with the -menu and -tagfile option: Of course the bsd-games are only optional, but now force to install them.
GO INSTALLPKG SOFTWARE
Each software collection on the DVD has a specific tagfile: The priorities are set in a specific tagfile. OPT: installation of this package is optional REC: installation of this package is recommended By setting priorities you can influence if a package will be installed or not.

Inside Slackware package managment there is something known as priorities. # installpkg -terse /mnt/loop/slackware/y/īsd-games-2.13-i486-11: Classic BSD text games collection Instead of growing the output you can reduce the output with the -terse option: # installpkg -menu /mnt/loop/slackware/y/ With the -menu option you will get a fancy dialog box that will ask you for confirmation if the package should be really installed: # installpkg -infobox /mnt/loop/slackware/y/ These can be shown with the -infobox option: When installing Slackware from CD/DVD you will see these fancy boxes during package installation. Nothing will happen, no listing will be produced. # installpkg -warn -root /a /mnt/loop/slackware/y/ If you remove the package bsd-games from the original root / but keep in /a installed then the -warn option won't work: The -warn and -root options can not be combined. When you take a closer look into /a/var then you will figure out that the package database will also be created in the alternate root destination: Now take a look your alternate root directory: # installpkg -root /a /mnt/loop/slackware/y/ First create an alternate root directory and then install the package: To install a package in a alternate root directory use the -root option. It will give a list of all already available or installed files. The -warn option will check if the file that should be installed is already available on your harddisk. # installpkg -warn /mnt/loop/slackware/y/ If you were unsure if the package could overwrite already existing files then use the -warn option: # Adds a call to 'fortune' to /etc/profile.d/ so that users will get aĮxecuting install script for. # snake snscore teachgammon trek wargames worm worms wump # phantasia pig pom ppt primes quiz rain random robots rot13 sail # factor fish fortune gomoku hangman hunt mille monop morse number # banner battlestar bcd caesar canfield cfscores countmail cribbage # Games that go in /usr/games: adventure arithmetic atc backgammon # bsd-games (Classic BSD text games collection) Installing a package with installpkg isn't too hard, just execute installpkg with the desired package: sbin/upgradepkg: POSIX shell script, ASCII text executable sbin/removepkg: POSIX shell script, ASCII text executable sbin/pkgtool: POSIX shell script, ASCII text executable sbin/makepkg: POSIX shell script, ASCII text executable sbin/installpkg: POSIX shell script, ASCII text executable sbin/explodepkg: POSIX shell script, ASCII text executable The commands itself are located under /sbin/ and they are just ordinary Shell scripts: Pkgtool: dialog managed frontend (not described here)Īs you can see most command names are speaking for them self. There are a few tools available in Slackware to install and remove a package: When a package will be removed then the associated metadata file in the package database will be read, the content in it will be removed from your harddisk and the metadata file itself will be removed. So you don't have to keep track the content of your Slackware installation by yourself. The package database is needed to remove a package again and just only the package and its content. The package database is under /var/log/packages: The package database is a single directory containing a text file (metadata) for each package with its content. The disadvantage is that the package wouldn't show up in the package database. You could go into / and extract the tar file then the directory /usr/games would be created and the binaries under it. The listing above shows the directory usr/games and the two binaries cfscores and cribbage. rwxr-xr-x root/root 27144 20:10 usr/games/cribbage rwxr-xr-x root/root 4808 20:10 usr/games/cfscores
GO INSTALLPKG ISO
In all coming examples I will use the mounted DVD iso so I won't show the two commands again. First make sure you have access to the packages, eg.

Symbolic links will be created during package instalation. All files in the package are already at their places except for the leading slash. All packages are just ordinary compressed (gzip) tar files, since Slackware 13.37 the tar files are compressed with xz. The Slackware package management is one of the easiest to understand and to use.
