If you cannot access the Internet after installing the Fedora system, you cannot use yum to install some software. In this case, you need to set the local yum source. You can copy the content on the DVD to the hard disk or mount it to a directory. In order to facilitate and save hard disk space, here we will talk about how to mount and set yum. 1. Mount the DVD $ su # mkdir/mnt/fedora-dvd # mount-tiso9660/dev/cdrom/mnt/fedora-
If you cannot access the Internet after installing the Fedora system, you cannot use yum to install some software. In this case, you need to set the local yum source. You can copy the content on the DVD to the hard disk or mount it to a directory. In order to facilitate and save hard disk space, here we will talk about how to mount and set yum.
1. mount a DVD
$ Su
# Mkdir/mnt/fedora-dvd
# Mount-t iso9660/dev/cdrom/mnt/fedora-dvd
(Note: Mount as needed)
2. Set yum
# Cd/etc/yum. repo. d/
# Cp fedora. repo dvd. repo
# Vim dvd. repo
Modify the content in the dvd. repo as follows:
[Fedora-dvd]
Name = Fedora DVD $ releasever-$ basearch
Baseurl = file: // mnt/fedora-dvd/
Enable = 1
Gpgcheck = 1
Gpgkey = file: // mnt/fedora-dvd/RPM-GPG-KEY-fedora
3. Now you can use
# Yum search git