Posted by: isaraffee | September 15, 2009

Package Management in Slackware 12

Package Management in Slackware 12

To install, remove. upgrade packages using GUI, type:


To administer packages using command line, I installed slapt-get package

You have to download the package from the Internet. Extractthe packageusing:

# tar zxvf slapt-get-0.10.2.tar.gz

Build the package:

cd slapt-get-0.10.2


make install

Check that the package is installed:

# which slapt-get


Using slapt-get command

To check if a package is installed, type:

root@galaxy:~# slapt-get –list|grep minicom

Failed to open package_data

package_data: No such file or directory

Perhaps you want to run –update?

minicom-2.1-i486-2 [inst=yes]: minicom (communications package)

To read more about a package, type:

root@galaxy:~# slapt-get –show minicom

Failed to open package_data

package_data: No such file or directory

Perhaps you want to run –update?

Package Name: minicom

Package Mirror:

Package Priority: Default

Package Location: /var/log/mount/slackware/a/minicom-2.1-i486-2.tgz

Package Version: 2.1-i486-2

Package Size: 356 K

Package Installed Size: 930 K

Package Required:

Package Conflicts:

Package Suggests:

Package MD5 Sum:

Package Description:

minicom (communications package)

Minicom – a full featured menu-driven communications package similar

to the DOS program ‘Telix’. Also includes sz/rz – utilities used to

upload and download files using the Zmodem protocol.

Package Installed: yes

1. pkgtool

Included with Slackware, this is (n)curses frontend for the command line tools installpkg, upgradepkg and removepkg.

2. slackpkg

Downloads and installs (if you explicitly wish) updates and patches for stock Slackware packages. Like 1., it doesn’t help to keep 3rd party stuff up-to-date, unfortunately, which is why I also use the following.

3. slackyd

For management of 3rd party packages hosted at This is a great repository provided by the Italian Slackware community. And from my experience so far, I can highly recommend the little tool, too.

4. sbopkg

Downloads, compiles and installs (if you explicitly wish) packages using SlackBuild scripts from

5. src2pkg

This tool makes Slackware binary packages from source code packages. Once the tool finishes, you can install the package using pkgtool. It also simplifies the installation of foreign binary packages, such as RPM packages for other distros, on Slackware.

6. slapt-get

This is a tool resembling the functionality of dpkg (or whatever the precise name of the Debian package manager is…), to a degree, including dependency checking.

It helps to search, download and install packages from multiple repositories, such as (see above) and (a big repository with 3rd-party packages for Slackware and some derivatives, such as Zenwalk).

But I use it only for dependency checks. Once you start allowing slapt-get not only to check, but also to *resolve* dependencies, depending on how you configure it, it may start to flood your machine with lots of stuff you never knew that you need it.

This is, of course, not something to be blamed on slapt-get as such, but on the package maintainers, as they define the dependencies of their packages, while slapt-get only evaluates this information. But coming from RPM, if you really can’t live comfortably outside the dependency hell, you may like slapt-get.

Updating Packages

To update packages, you can visit the SLackware website, and click on the Security Advisories.

In this exercise, we are going to update tcpdump

But first check what version of tcpdump that we have.

root@galaxy:~# slapt-get –list | grep tcpdump

Failed to open package_data

package_data: No such file or directory

Perhaps you want to run –update?

tcpdump-3.9.6-i486-1 [inst=yes]: tcpdump

Leave the tcpdump security advisory [age open so that we cam check the MD5 signature after we have download the update.

From the website, the MD5 signature:

Slackware 12.0 package:

f2b34a0c29485d8f942602b69fae0c70 tcpdump-3.9.7-i486-1_slack12.0.tgz

To get the package, as suggested from the website, type:

root@galaxy:~# wget

=> `tcpdump-3.9.7-i486-1_slack12.0.tgz’


Connecting to||:21… connected.

Logging in as anonymous … Logged in!

==> SYST … done. ==> PWD … done.

==> TYPE I … done. ==> CWD /pub/slackware/slackware-12.0/patches/packages … done.

==> PASV … done. ==> RETR tcpdump-3.9.7-i486-1_slack12.0.tgz … done.

Length: 500,461 (489K) (unauthoritative)

100%[==========================================================>] 500,461 7.96K/s ETA 00:00

16:38:34 (8.00 KB/s) – `tcpdump-3.9.7-i486-1_slack12.0.tgz’ saved [500461]

The instruction to upgrade the package as reflected on the website:

Installation instructions:


Upgrade the package as root:

# upgradepkg

So launch a console, and type:

root@galaxy:~# upgradepkg tcpdump-3.9.7-i486-1_slack12.0.tgz

The output is long but look out for the line that reads:

Package tcpdump-3.9.6-i486-1 upgraded with new package ./tcpdump-3.9.7-i486-1_slack12.0.tgz.

After the upgrade is completed, verify the package version:

root@galaxy:~# slapt-get –list | grep tcpdump

Failed to open package_data

package_data: No such file or directory

Perhaps you want to run –update?

tcpdump-3.9.7-i486-1_slack12.0 [inst=yes]: tcpdump

Yes the package version was updated from 3.9.6 to 3.9.7

Checking the MD5sum

To check the MD5sum of the package with the one showed in the website, type:

root@galaxy:~# md5sum tcpdump-3.9.7-i486-1_slack12.0.tgz

f2b34a0c29485d8f942602b69fae0c70 tcpdump-3.9.7-i486-1_slack12.0.tgz

Compare the MD5 signature


If you want to update all packages at one time, type *.gz at the end of the ftp address i.e.

root@galaxy:~# wget*.tgz

After the updates have completed, upgrade them by typing:

root@galaxy:~# upgradepkg *.tgz

Installing Flash Player

After downloading the package, type:

root@galaxy:~# cd Desktop/downloads/

root@galaxy:~/Desktop/downloads# tar zxvf install_flash_player_10_linux.tar.gz


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: