Ramprasad

/home/resources

[Powered by FreeBSD UNIX]

[Powered by Yahoo! Small Business]

Valid HTML 4.01!

Valid CSS!

Package Management



RedHat GNU/Linux

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

Using Yum (Yellow dog Updater Modified) - works on Yellow Dog, RedHat, and CentOS GNU/Linux systems too

Installing

yum install foo

Upgrading

yum update foo

Uninstalling

yum remove foo

Querying

yum search foo

Debian GNU/Linux

dpkg is the software at the base of the Debian package management system. dpkg is used to install, remove, and provide information about .deb packages on Debian systems.

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

Ubuntu's package management system is derived from the same system used by the Debian GNU/Linux distribution. The package files contain all of the necessary files, meta-data, and instructions to implement a particular functionality or software application on your Ubuntu computer.

Installing

apt-get install foo

Upgrading

apt-get -u upgrade

Uninstalling

apt-get remove foo

Querying

apt-cache search foo

Macintosh

Native method

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...

Installing

fink install foo

Uninstalling

fink remove foo

Searching

fink list | more - gets a whole list of available packages

Solaris

Here are the most common commands you would use to manage your application packages on Solaris.

Installing

pkgadd -d foo.pkg

Uninstalling

pkgrm foo


Last modified: 20/January/2009