Linux package installation: deb and rpm rpm installation package in ubuntu

Generally known Linux system is basically divided into two categories:

  1. RedHat series: Redhat, Centos, Fedora, etc.
  2. Debian Series: Debian, Ubuntu, etc.

Dpkg (Debian-based): dpkg is shorthand for Debian Package is specially developed for the Debian package management system, easy to install software, update, and remove. All Linux distributions from Debian are using dpkg, such as Ubuntu, Knoppix and so on.
RPM (Red Hat system): rpm is redhat, fedora, suse format. The full name of Redhat PackageManager, proposed by Redhat company, for software package management under Linux. When installing Linux, in addition to a few core modules, almost all of the remaining modules to complete the installation by RPM.

RedHat series

  • Common installation package rpm package format, command to install the rpm package is "rpm - Parameters"
  • Yum package management tool
  • Support tar package

Debian Series

  • Common installation package format deb package, install deb package is a command "dpkg - Parameters"
  • Apt-get package management tool
  • Support tar package

The following are some of the common usage of Dpkg:

1, dpkg -i <package.deb>
install a Debian package, if you download the file manually, (which is equivalent to --install -i)

2, dpkg -c <package.deb>
file structure lists <package.deb> content contained (equivalent to --contents wherein -c)

3, dpkg -I <package.deb>
details package information is extracted from the <package.deb> including software name, version, and size (which is equivalent to --info -I)

4, dpkg -r <package>
to remove an installed package (software name by dpkg -I command to view, which is equivalent to -r --remove)

5, dpkg -P <package>
completely remove an installed package. And remove the difference is, remove just delete the data and executables, purge also deletes all configuration files.

6, dpkg -L <package>
listed <package> installed all files installed with the package (software name can be viewed through -I command dpkg, wherein -L equivalent --listfiles)

7, dpkg -l <package>
See <package> package information (software name to the command -I viewed through dpkg, which is equivalent to --list -l)

8, dpkg -s <package>
show details package installed. At the same time see the apt-cache show package information Debian archive and dpkg -I displays package information extracted from a .deb file. (Software name can be viewed by dpkg -I command, which is equivalent to -s --status)

9, dpkg-reconfigure <package>
reconstitution an installed package, if it uses debconf (debconf package is installed provides a unified configuration interface).

from here.


Rpm package installed in the ubuntu

 
 

Guess you like

Origin www.cnblogs.com/dulun/p/11609661.html