Installing Basic Libraries
- Mount the OS image.
1mount YOUR_OS.iso /media -o loop
Replace YOUR_OS.iso with the actual ISO package name.
- Back up the repo file and clear the /etc/yum.repos.d/ directory.
1 2
cp -r /etc/yum.repos.d /etc/yum.repos.d-bak rm /etc/yum.repos.d/*
Ensure that all repo files have been backed up before entering y on the rm deletion page to delete the files.
- Open the /etc/yum.repos.d/Local.repo file.
- Open the file.
1vi /etc/yum.repos.d/Local.repo - Press i to enter the insert mode and configure the Yum source.
1 2 3 4 5
[Local] name=Local baseurl=file:///media/ enabled=1 gpgcheck=0
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Make the Yum source configuration take effect.
1 2
yum clean all yum makecache
- Use Yum to install the basic library.
1yum install wget make autoconf gcc zlib-devel perl-devel perl-CPAN gettext libffi-devel bzip2-devel
Parent topic: Configuring the Environment