21st issue of Linux configuration warehouse and software management "Yum"

Source: Internet
Author: User
Tags yum repolist

Experimental Purpose:
1. Configure the Software repository
2. Client Configuration Yum File
3. Querying packages
4. query files and commands by which package is generated
Experimental Steps and Results:
1. Configure the Software repository
#umount/dev/cdrom//prevention before a mount, first kill
#ls/mnt//See if there are still mounts in MNT
#mount/dev/cdrom/mnt
Mount the CDROM under the root of the dev "storage device-related location" to the MNT under the root
#ls/mnt//To see if the mount was successful

#mkdir-P/REPO/COS7DVD//create a continuous repo under the root under the Cos7dvd "-p for recursive creation"
#cp-rf/mnt/ /repo/cos7dvd//Will all files under the root of mnt "asterisk denotes all files" copied to repo under the root under Cos7dvd "-R for Directory Replication"
#du-sh/repo/cos7dvd//view Cos7dvd size under repo under root

2. Client Configuration Yum
#ls/etc/yum.repos.d///View the etc under the root "storage configuration-related location" YUM.REPOS.D content
#mkdir/etc/yum.repos.d/oldrepo//Create a root under etc under the YUM.REPOS.D under the Oldrepo
#mv/etc/yum.repos.d/
. repo/etc/yum.repos.d/oldrepo///Move all files under YUM.REPOS.D Oldrepo
#ls/etc/yum.repos.d///See if the move was successful

#yum-config-manager--add file:///repo/cos7dvd///Configure client Yum
#ls/etc/yum.repos.d///See if "Identity file" appears

#vim/etc/yum.conf//through Vim to modify the root of etc under the yum.conf and change the line of 1 to 0

#yum clean all clear yum cache

#yum repolist Verify the warehouse name, path, number of packages

3. Querying packages
Basic usage
Format: Yum list [software name]. ..
Such as:
#yum List Firefox

Get description information for a package
Basic usage
Format: Yum info [software name]. ..
Such as:
#yum Info httpd

4. query files and commands by which package is generated
Basic usage
Format: Yum privides "/program or filename" ....
eg
#yum provides "
/vim" | More "| For pipe, more for split screen display"

Thank you

21st issue of Linux configuration warehouse and software management "Yum"

Related Article

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.