Related configuration of the "Basic section" of Yum

Source: Internet
Author: User

Tag: Profile Network File

1. Configure the local Yum source

mount/iso/Mirror Name/mnt

Vim/etc/yum.repos.d/yum.repo (yum source configuration file)

[Yumsource]

Name=yumsource

Baseurl=file:///mnt

Gpgcheck=0

2. Configure the network Yum source

echo "/iso/Mirror name Mirror mount point iso9660 ro 0 0" >>/etc/fstab (Boot auto mount) "Be careful not to overwrite/etc/fstab files"

Execute mount-a after modifying fstab

Vim/etc/yum.repos.d/yum/repo

[Yumsource]

Name=yumsource

Baseurl=file:///mnt

Gpgcheck=0

3. Establishment of third-party software repositories

Move third-party software to/software

Executing createrepo/software in the directory

Generate Repodate Directory

Writing a yum source configuration file

4.yum Software Control

Vim/etc/yum.conf

Exclude=*.x86_64 (ignoring 64-bit installation package)

exclude=*.i686 (ignoring 32-bit installation package)

5.yum List all lists all the installation packages

Yum Remove Uninstall

Yum Search Search

Yum Whatprovides search for packages containing a file

Yum Info query Software information

Related configuration of the "Basic section" of Yum

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.