Linux Package Installation method
One, three ways to install the package
Rpm
Yum Tool Pack
SOURCE Package
RPM Package Introduction
Second, RPM introduction
RPM is an abbreviation for RPM Package Manager(rpm packages Manager), although the file format name is RedHat, but its original design concept is open and now includes openlinux,s.u.s.e, and distribution versions of Linux, such as Turbo Linux , are accepted as industry standards.
2. use of RPM tools
RPM–IVH rpm Package file // installation
RPM–UVH rpm Package file // upgrade
Rpm–e Package Name // Uninstall
RPM–QA// Query installation package
Rpm–q Package Name // query Specifies whether the package is installed
Rpm–qi Package Name // Query Specify package information
RPM–QL Package Name // list package installed files
RPM–QF File Absolute path // View a file is installed with that package
Third, the use of Yum tools
Yum 's main is more convenient to add, delete, update RPM package, automatically solve the dependencies between software packages, convenient system updates and software management. Yum through the Software warehouse (repository) for software download, installation, etc., the software warehouse can be an HTTP or FTP site, can also be a software pool, the resource warehouse can also be multiple , You can configure it in the/etc/yum.conf file. in the Yum Repository, the header informationof the RPM is included,including the function description, dependencies, etc. of the software. By analyzing this information,Yum calculates dependencies and carries out related upgrades, installs, deletions, and so on.
Yum command Format
Yum [options] Command ( command )
Check to detect rpmdb problems
Check-update checking for updatable packages
clean clears the cached data
Deplist Show dependencies for packages
Distribution-synchronization Synchronizing installed packages to the latest available version
Downgrade downgrade a package
Erase Deleting a package
GroupInfo Show package group details
Groupinstall Installing the specified package group
Grouplist Show available package group information
Groupremove Removing installed package groups from the system
Help removal assistance Information
history shows or uses interactive histories
Info shows the details of a package or package group
Install installation package
List displays packages that can be installed or updatable
Makecache Generating a metadata cache
Provides search for a specific package file name
Reinstall Reinstall Package
Repolist displaying the configured repository
RESOLVEDEP refers to the fact that Reliance
Search Package
Shell enters Yum 's shell prompt
Update updates the packages in the system
Upgrade upgrading packages in the system
version shows the versions of the available sources for the machine
Four, yum build local warehouse main steps
1. mount the image to the /mnt directory
2. Cp–r/etc/yum.repos.d/etc/yum.repos.d.bak
3. rm–f/etc/yum.repos.d/*
4. Vim/etc/yum.repos.d/dvd.repo// content is as follows
[DVD]
Name=install DVD
Baseurl=file:///mnt
Enable=1
Gpgcheck=0
5. Yum Cean All
6. Yum List
Linux Package Installation method