CentOS CD mount command and install software

Source: Internet
Author: User

Recently learned another command: Mount Mount command, we install the software, we directly hit the command install package name, but here is actually connected to install,

If you are using a disc, you should use the Mount command from your local installation.

1, my Linux system is installed in the virtual machine, so, to first through the Virtual machine setup options, the CD or image file to add, and then in the terminal window

Input: mount/dev/cdrom/mnt//NOTE: Mount the CD to the MNT directory under the root directory

2, CD/ETC/YUM.REPOS.D//notes:

2.1 mv Centos-base.repo Entos-base.repo.bak//Note: This can be deleted, or you can modify the file suffix

2.2 Vim Centos-media.repo

baseurl=file:///mnt///Note: Specify the Yum source location

Enabled=1//Note: Yum source file is in effect

3. Installation software: Yum-y Install package name//Comment: This is to retrieve the installation package directly from the CD and install

CentOS CD mount command and install software

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.