YUM Service Construction in RedHat6.0

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.