Install the package of Fedora 9 from the installation disc

Source: Internet
Author: User
Tags gpg

By http://blog.csdn.net/liguisen/

After Linux is installed, we usually download the software package from the Internet, but sometimes it takes a long time to download it, or it is caused by the network or the source. But if we do not care much about the software version, we can install it locally, because our installation disk usually contains many common software packages. Let's take fedora 9 as an example to see how to do it.

First, let's take a look at the current installation sources. Open/etc/yum. Repos. D. There are several files in it and you can see which installation sources are available. Assume that we are working in the graphic interface. You can also see from system> Management> Software sources. If you are on a terminal, you can also enter GPK-repo to view software sources.

1. Now go to/etc/yum. Repos. D. If you are worried about modification errors, back up the original configuration first. How can you back up it? The simplest thing is to create a folder old, move all the files to the old folder, create a new file DVD. Repo, and enter the following content: (do not enter the content in the brackets)

[Core]
Name = dvd iso (just a name)
Baseurl = file: // mnt)
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // MNT/RPM-GPG-KEY (the authentication file named RPM-GPG-KEY on the disc)
2. re-enter software sources and you will find that there is only one dvd iso left in the installation source.

3. Mount the disc to/mnt, and then you can add or delete the software package, you can choose "system"> "management"> Add/Remove software from the GUI (the same is true for running GPK-application on the terminal ), you can also find the RPM or yum install Installation Method in the/mnt directory without any worries about package dependencies.

4. To restore the original network installation, just take out the files in the old folder.

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.