Questions tagged [package-management]

tools for installing and maintaining software packages

Most Unix variants come with tools to install software packages, list installed packages, upgrade them, remove them and other maintenance tasks. Many variants have two sets of tools:

  • a low-level tool for maintaining the packages installed on a machine (install a package file, list the files belonging to an installed package, list the installed packages, …);
  • a high-level tool for downloading new or upgraded packages (download and install a package and its dependencies, upgrade all packages, …).

Package management tools

  • APT, the Debian high-level package management suite, over Dpkg (and ported to other low-level packagers), also used by other distributions such as Ubuntu
    • An APT-based package manager with both a command line and a full-screen text mode interface
  • The Debian low-level package manager, also used by other distributions such as Ubuntu
  • The package manager for OS X
  • A Linux package manager, originally developed for the Arch Linux distribution
  • A low-level package manager originally developed by Red Hat, now used by many distributions including Red Hat Enterprise Linux, CentOS, Fedora, SuSE, …
  • YaST, the setup tool, includes the functionality of high-level package management tools
  • A high-level package manager over RPM, originally from Yellowdog Linux, used by many RPM-based distributions including Red Hat Enterprise Linux, CentOS and Fedora
  • Zypper, the SuSE high-level command-line packaging tool, and the underlying engine ZYpp

Other related tags

Further reading

2317 questions
552
votes
7 answers

How do I check package version using apt-get / aptitude?

Before I install a package, I'd like to know what version I would get. How do I check the version before installing using apt-get or aptitude on Debian or Ubuntu?
user4069
336
votes
2 answers

How can I instruct yum to install a specific version of package X?

If there are two (or more) versions of a given RPM available in a YUM repository, how can I instruct yum to install the version I want? Looking through the Koji build service I notice that there are several versions.     
slm
  • 363,520
  • 117
  • 767
  • 871
280
votes
10 answers

What is the real difference between "apt-get" and "aptitude"? (How about "wajig"?)

I know that both apt-get and aptitude are command line package management interfaces on Debian derived Linux, with different options, but I'm still somewhat confused. Under the hood, aren't they using the same APT system? Why does Debian maintain…
Kevin Cantu
  • 3,774
  • 4
  • 18
  • 13
194
votes
3 answers

In Arch Linux how can I find out which package to install that will contain file X?

I'm looking for a package that provides a specific binary, so I can install it. how can I search to find out what packages provide this binary? (note: I know there's at least one tool that does this, but I have forgotten its name.)
xenoterracide
  • 57,918
  • 74
  • 184
  • 250
191
votes
3 answers

Easily unpack DEB, edit postinst, and repack DEB

I'm attempting to install Intel's OpenCL SDK but the DEB files are buggy conversions from RPM (see here for the curious). I need to edit the postinst script in the DEB they provide. How can I take an existing DEB, extract the contents (including…
John Jumper
  • 2,015
  • 2
  • 12
  • 6
149
votes
16 answers

Where should I put software I compile myself?

I need to compile some software on my Fedora machine. Where's the best place to put it so not to interfere with the packaged software?
147
votes
4 answers

What is yum equivalent of 'apt-get update'?

Debian's apt-get update fetches and updates the package index. Because I'm used to this way of doing things, I was surprised to find that yum update does all that and upgrades the system. This made me curious of how to update the package index…
tshepang
  • 64,472
  • 86
  • 223
  • 290
135
votes
12 answers

List packages on an apt based system by installation date

How can I list installed packages by installation date? I need to do this on debian/ubuntu. Answers for other distributions would be nice as well. I installed a lot of stuff to compile a certain piece of code, and I want to get a list of the…
Elazar Leibovich
  • 3,131
  • 5
  • 27
  • 28
103
votes
8 answers

How to install apt-get or YUM on Mac OS X

I want to use either of apt-get or yum. How to install them and make them successful running?
Karan-41317
  • 1,141
  • 2
  • 8
  • 5
97
votes
5 answers

How to check available package versions in rpm systems?

If I want to check available versions of a package in Debian, I run apt-cache policy pkgname which in the case of wajig gives: wajig: Installed: 2.01 Candidate: 2.01 Version table: *** 2.01 0 100 /var/lib/dpkg/status 2.0.47 0 …
tshepang
  • 64,472
  • 86
  • 223
  • 290
85
votes
5 answers

How can I tell whether a package is installed via yum in a bash script?

I am trying to write a script that installs packages, but if it fails at any point later in the script rolls back whatever it installed. Of course if the user has already previously installed a package I don't want to uninstall it out from under…
Doktor J
  • 2,622
  • 2
  • 15
  • 18
81
votes
6 answers

Listing packages in Yum that depend on another installed package

I am trying to install a 3rd-party RPM package on RHEL5 which depends on version 3.4 of sqlite. According to Yum I already have 3.3.6 installed. Is there a way to list the installed packages that depend on sqlite 3.3.6?
Rich
  • 4,439
  • 10
  • 33
  • 34
77
votes
3 answers

Can I rollback an apt-get upgrade if something goes wrong?

Is there a way, before starting an aptitude upgrade or apt-get upgrade, to set up something so that you can "easily" rollback your system to the "apt" state it was before the actual upgrade, if something goes wrong? That is, for example, reinstall…
Totor
  • 19,302
  • 17
  • 75
  • 102
77
votes
2 answers

Debian: The repository does not have a Release file

Whenever trying to install some programs from source, or specifically running apt update, I receive this message: E: The repository 'http://ftp.ca.debian.org/debian stretch/updates Release' does not have a Release file. N: Updating from such a…
user77647
77
votes
3 answers

Can I force dnf to install an old version of a package?

I want to install an older version of package , and when I use dnf it only shows the current version of the package . Is there any way to install an older versions using dnf ?
0x0584
  • 1,284
  • 2
  • 15
  • 23
1
2 3
99 100