1. Binary package Management (RPM, YUM)
2. Source Code Package Installation
3. Script installation (shell or Java script)
4, Debian system Linux Package management Introduction
First, RPM package management
An example of a RPM package:
sudo-1.7.2p1-5.el5.i386.rpm
These include the software name (sudo), the version number (1.7.2PL), the release number (5.EL5), and the hardware platform (i386).
1. Uninstall
Rpm-e sudo rpm-e [software name]
Note: If other packages have dependencies, they will be prompted when uninstalling, and can be forcibly uninstalled using--nodeps
2. Installation
RPM-IVH sudo-1.7.2p1-5.el5.i386.rpm
To mount a disc:
Mkdir/mnt/cdrom Create a directory to mount
Mount/dev/cdrom/mnt/cdrom/dev/cdrom is the file of the optical drive,/mnt/cdrom is the Mount directory
Inquire:
Rpm-q sudo queries whether this package is installed
Rpm-qa | grep Samba
RPM-QF query file under the package
Rpm-qi Querying installed package information
RPM-QIP query for non-installed package information
RPM-QL to query the installation files for installed packages
RPM-QLP to query installation files for packages that are not installed
RPM-QD Help document for query package
RPM-QC querying the package configuration file
Installation options
--excludedocs
Do not install the document files in the package
--prefix PATH
Install the package to the path specified by path
--test
Test only the installation, not the actual installation
--replacepkgs
To overwrite the installation
3. Upgrade
4. Check
RPM-V [Package name]
5. Extracting files from the installation package
When some system files are mistakenly deleted, the corresponding packages can be found from the ISO image package, and the specific files will be extracted.
Unzip the specified file to the current directory
rpm2cpio/mnt/cdrom/packages/initscripts-9.03.31-2.el6.centos.x86_64.rpm | Cpio-idv./etc/inittab
Second, yum package management
Benefits: 1, automatically resolve the dependencies of the package. 2, convenient package upgrade, 3, to link the Internet
Installing Yum Install
Detection upgrade Yum Check-update
Upgrade Yum Update
Package Query Yum List
Package Information Yum Info
Uninstalling Yum Remove
Help Yum-help, man Yum
Software package management for Linux