1. Software package classification:
Source package: script installation package
binary package (RPM package, system default package)
Source package
Advantages:
open source, if you have enough capabilities, you can modify the source code,
you can choose the required function
software is to compile and install, so it is more suitable for your own system, more stable and more efficient,
easy to uninstall (installation files can be deleted, you can delete clean)
Disadvantages: There
are many steps in the installation process, especially when installing a large set of software (such as LAMP environment), it is prone to spelling errors. The
compilation process takes a long time, and the installation is longer than the binary installation time.
Because it is a compilation installation, once the installation process is wrong, novice It is difficult to solve.
Binary package
Advantages: The
package management system is simple, and package installation, upgrade, query, and uninstallation can be achieved with just a few commands.
The installation speed is much faster than the source package installation.
Disadvantages:
After compiling, you can no longer view the source code
function selection is not as flexible as the source package
dependency a-> b-> c
2. RPM package management-rmp command management
RPM package naming rules
httpd-2.2.15-15.el6-centos.1.i686.rmp
httpd package name (the whole together is called the package full name)
2.2.15 software version
15 software release times
el6.centos suitable for Linux Platform
i686 Suitable hardware platform
rpm rpm package extension
RPM package dependency
tree dependency: a-> b-> c
ring dependency: a-> b-> c-> a
module dependency: module dependency query website: www.rpmfind .net
In the demonstration, the
CD should be mounted first.
Create a mount directory mkdir / mnt / cdrom
and then use mount to
mount it / dev / sr0 / mnt / cdrom
cd / mnt / cdrom /
ls View
cd packages
ls
rmp -ivh
-i means installation
-v means to display installation information
-h means to show installation process.
Packages ending in .so.2 are library dependencies (you can use www.rpmfind.net to see which package the library belongs to)
yum online management Can solve dependency problems
Package full name: When the package to be operated is a software package that has not been installed, use the package full name, and pay attention to the path
package name: When operating a package that has been installed, use the package name. Search the database in / var / lib / rmp.
Pay attention to the package name. The package full name refers to the use of
rpm -ivh in the rpm command management. Package full name
-i (install) Installation
-v (verbose) Display detailed information
-h (hash) Display progress
--nodeps does not detect dependencies ( Generally not used)
upgrade:
rmp -Uvh package full name
-u (upgrade) upgrade
uninstall:
rmp -e package name
-e (erase) uninstall
--nodeps does not detect dependencies