The specific steps are as follows: 1. Attach the disc and create the YUM directory. Before creating the directory, you must check the disk space (df-h) before [root @ topic ~]. # Mkdir/yum [root @ topic ~] # Mount/dev/cdrom/
The procedure is as follows:
1. Attach the disk and create a directory in which YUM is stored. Before creating a directory, you must check the disk space (df-h)
------------------------------------------------------------------------------
[Root @ topic ~] # Mkdir/yum
[Root @ topic ~] # Mount/dev/cdrom/mnt
[Root @ topic ~] # Df-h (view disk space)
--------------------------------------------------------------------------------
2. Copy the CD file;
--------------------------------------------------------------------------------
[Root @ topic ~] # Cp-rf/mnt/*/yum
---------------------------------------------------------------------------------
3. install the software package required by the YUM service:
---------------------------------------------------------------------------------
[Root @ topic ~] # Cd/mnt/Packages/-------------> package directory
[Root @ topic Packages] # rpm-ivh deltarpm-3.5-0.5.20090913git.el6.i686.rpm
[Root @ topic Packages] # rpm-ivh python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm
[Root @ topic Packages] # rpm-ivh createrepo-0.9.8-4.el6.noarch.rpm
----------------------------------------------------------------------------------
4. Use the createrepo command to generate the YUM database and retrieve the software package. Because software Packages other than Packages are required for software installation, you can retrieve all the CDs;
Bytes -----------------------------------------------------------------------------------
[Root @ topic ~] # Createrepo-g/yum/repodata/export-filelists.sqlite.bz2/yum
Bytes -----------------------------------------------------------------------------------
Yum list
Yum server: # yum grouplist lists all group service suites on the yum server.
# Yum groupinstall Newsgroups test and install the linux newsgroup service.
Client: # yum remove httpd to delete the software package.
# Yum clean all clears the cache of the downloaded software.
# Yum update Software Package.
# Yum list installed list all installed software packages
# Yum list avaliable list all available software packages
# Yum list updates list all the software packages that can be upgraded install gcc