RPM Package Manager (Red Hat Package Manager, abbreviated RPM) is a package management system for RedHat systems.
Installing
rpm -ivh foo-1.0-1.i386.rpm
Upgrading
rpm -Uvh foo-1.0-1.i386.rpm
Replacing
rpm -ivh --replacepkgs foo-1.0-1.i386.rpm
Uninstalling
rpm -e foo
Querying
rpm -q foo
Instead of specifying the package name, you can use the following options with -q to specify the
package(s) you want to query. These are called Package Specification Options.
-a queries all currently installed packages.
-f <file> will query the package owning
-p <packagefile> queries the package
There are a number of ways to specify what information to display about queried packages. The
following options are used to select the type of information for which you are searching. These
are called Information Selection Options.
-i displays package information including name, description, release, size, build date,
install date, vendor, and other miscellaneous information.
-l displays the list of files that the package contains.
-s displays the state of all the files in the package.
-d displays a list of files marked as documentation (man pages, info pages, README's, etc).
-c displays a list of files marked as configuration files. These are the files you change
after installation to adapt the package to your system (sendmail.cf, passwd, inittab, etc).
For those options that display file lists, you can add -v to your command line to get the lists
in a familiar ls -l format.
Verifying
rpm -Vp foo-1.0-1.i386.rpm
Fedora GNU/Linux |
Installing
yum install foo
Upgrading
yum update foo
Uninstalling
yum remove foo
Querying
yum search foo
Debian GNU/Linux |
Installing
dpkg -i foo-1.0-1.i386.deb
Upgrading
dpkg --update-avail foo-1.0-1.i386.deb
Uninstalling
dpkg -P foo
Querying
dpkg -l foo
Ubuntu GNU/Linux |
Installing
apt-get install foo
Upgrading
apt-get -u upgrade
Uninstalling
apt-get remove foo
Querying
apt-cache search foo
Macintosh |
Installing
Fisrt, you need to mount or attach the disk image file(package)
hdiutil attach foo.dmg or hdiutil mount foo.dmg
Copy the application to /Applications
cp -R foo/ /Applications
Install in required directory
installer -package foo -target "/Volumes/MacintoshHD"
Umount the disk image
hdiutil unmount /Volumes/foo
Uninstalling
I am not sure yet...
Plugin method - Fink program
Installing
fink install foo
Uninstalling
fink remove foo
Searching
fink list | more - gets a whole list of available packages
Solaris |
Installing
pkgadd -d foo.pkg
Uninstalling
pkgrm foo
Last modified: 20/January/2009