Use an ISO file or CD/DVD to install the Linux software package

Source: Internet
Author: User
Use an ISO file or CD/DVD to install the Linux software package

Sometimes you need to install software on fedora, but the system is not installed by default, but the system disk must have it. In this case, it is very convenient to use Yum to install software from ISO or CD, and Yum can automatically parse dependencies; this method is especially convenient when there are no network conditions.

The steps are described as follows:

  1. Mount ISO to a local device

    # Mount Fedora-12-i386-DVD.iso-T iso9660-o loop/Media/CDROM/

    If you use a CD, run the following command:

    # Mount/dev/sr0/Media/CDROM/
  2. Back up the original repos configuration file

    # Cd/etc/yum. Repos. d/# mkdir backup # mv *. Repo backup/
  3. Create a new repos File

    [CDROM] Name = cdrombaseurl = file: // media/cdromenabled = 1 gpgcheck = 1 gpgkey = file: // media/CDROM/RPM-GPG-KEY-fedora-i386
  4. Refresh Yum Cache

    # Yum clean all # Yum makecache

Now you can use the yum command to install the software package ..

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.