Fedora 8 i386 use local iso to add and delete programs

Source: Internet
Author: User
Tags gpg

 

Step 1: First mount the iso file to a virtual optical drive:

Mount-o loop-t iso9660/mnt/cdrom

Note:

1. Replace with the address of your iso file such as/Fedora-8-i386.iso

2. If you/mnt do not have the cdrom directory, you can create a new folder named cdrom.

Step 2: Modify the location of the yum repository file:

Because Fedora's "Add/Remove Software" seems to have integrated some functions similar to yum. Every time you open it, it will search for the list of installation packages online. It will take a while (super annoying ). If you don't want it to search online, but simply add or delete software locally, you need to adjust the location of the yum repository file. That is, to back up the files in/etc/yum. repos. d/to another place. I chose to create a directory in the directory and place it.

Create a file with the. repo extension. Note that the file is stored in the directory of/etc/yum. repos. d. For example, I am CDROM. repo, and the path is/etc/yum. repos. d/CDROM. repo. The content is as follows:

[Core] Note: it must not be changed here; otherwise, a software Baotou download error may occur.

Name = CDROM

Baseurl = file: // mnt/cdrom Note: Here is the path to attach your CD

Enabled = 1

Gpgcheck = 1

Gpgkey = file: // mnt/cdrom/RPM-GPG-KEY Note: Here is the authentication file that specifies the RPM-GPG-KEY in the disc

Note: You must modify the remarks according to your location.

Okay. Now you can safely open "Add/Remove Software. Wait a moment and wait for it to search for the installation package to start adding/deleting programs.

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.