January 20, 2017

Linux Multi-Distro Package Manager Cheatsheet - page 2

Debian and Fedora (apt and yum)

  • July 9, 2010
  • By Juliet Kemp

OpenSUSE: Zypper

The native package manager for OpenSUSE is Zypper. The basic commands are:

command action
zypper in sqlite3 To install sqlite3
zypper lp To see what patch updates are needed
zypper patch To apply the needed patches
zypper up To update all installed packages with newer versions, where possible
zypper rm sqlite2 To remove sqlite2
zypper se sqlite to search for sqlite
zypper [command] --help Help on command.

To add a repository, use this command:
zypper ar http://example.com/pub/repo/SuSE/11.1  reponame
Again, the repository webpage should tell you the URL to use. By default, Zypper should have autorefresh on; if you've turned it off, you'll need to use zypper refresh after adding a repository and before issuing commands.

Slackware: pkgtool

Slackware is the only one of the distros covered in this article whose package manager doesn't deal with dependency management. This is a deliberate choice -- Slackware prefer dependencies to be managed directly by the sysadmin. Packages should also be downloaded directly (unfortunately the Slackware package browser is out of action at the moment, but packages, in txz format, are available elsewhere, or you can download the entire distro from the Slackware site).

command action
installpkg newpackage Install newpackage.
updatepkg newpackage Update (upgrade) newpackage.
removepkg oldpackage Remove oldpackage.
You can also use the graphical interface provided by pkgtool to manage packages.

Sitemap | Contact Us