Howto Setup yum repositories to update or install package from ISO CDROM Image
2010-09-15 17:10
751 查看
yum (Yellow dog Updater Modified) is a package manager for RPM compatible Linux systems such as CentOS, Fedora core and latest Redhat Enterprise Linux.
So how do you use yum to update / install packages from an ISO of CentOS / FC / RHEL CD?
Creation of yum repositories is handled by a separate tool called createrepo, which generates the necessary XML metadata. If you have a slow internet connection or collection of all downloaded ISO images, use this hack to install rpms from iso images.
Clean repo, enter:
Append following text:
Save and close the changes.
Now use yum command to install packages from ISO images:
So how do you use yum to update / install packages from an ISO of CentOS / FC / RHEL CD?
Creation of yum repositories is handled by a separate tool called createrepo, which generates the necessary XML metadata. If you have a slow internet connection or collection of all downloaded ISO images, use this hack to install rpms from iso images.
Step # 1: Mount an ISO file
Type the following command (replace iso file name with the actual iso file):# yum install createrepo # mkdir -p /mnt/iso/{1,2,3} # mount -o loop /path/to/centos1.iso /mnt/iso/1
Step # 2: Create a repository
Use createrepo to generate the necessary XML metadata. Type the following commands:# cd /mnt/iso # createrepo .
Clean repo, enter:
# yum clean all
Step # 3: Create config file
You need to create a repo config file in /etc/yum.repos.d/ directory.# vi /etc/yum.repos.d/iso.repo
Append following text:
[My ISO Repository] baseurl=file:///mnt/iso enabled=1
Save and close the changes.
Now use yum command to install packages from ISO images:
# yum install package-name
相关文章推荐
- Howto Setup yum repositories to update or install package from ISO CDROM Image
- Howto Setup yum repositories to update or install package from ISO CDROM Image
- How to Configure YUM to Install Packages From Installation ISO (RHEL)
- Install an RPM Package on Ubuntu Linux(from how to geek)
- How to import class from other package when building android image
- How to install or updata RPM package ?
- How to resize or create a thumbnail image from file stream on UWP
- How to image a CD/DVD ROM and generate hash value
- Error message when you try to install a SQL Server 2005 service pack or a SQL Server 2005 hotfix package: "Error 29528. The setup has encountered an unexpected error while Setting Internal Properties"
- How to view or edit pdf/image metadata from command line on Linux
- How to add repositories for yum install
- Mac OS X: Best Way to Make an ISO from a CD or DVD
- Create an ISO Image from a source CD or DVD on ubuntu
- RHEL6 use yum to install or update
- windows下python如何安装模块或包? How to install package or module in windows OS when using PYTHON?
- How To Install Windows 8 or 8.1 From a USB Device
- How To Install Or Upgrade LAMP: Linux, Apache, MySQL and PHP Stack Using Yum
- Install Ubuntu with ISO image file, without burning to CD
- howto dump ROM file from MTK 657* phone or pad?
- How to Convert AVFrame from NSImage or UIImage