this is tutorial how to create local repository using dvd-iso file
first, create mount point directory where iso file to be mounted
ex.
# mkdir /mnt/iso/
then mounting your iso file to mount point directory using the syntax
# mount -o loop file.iso mountdir
ex.
# mount -o loop linux.iso /mnt/iso/
create configuration file for yum
# vim /etc/yum.repos.d/local.repo
[local-repo]
name=local-repo
baseurl=file:///mnt/iso/
gpgcheck=0
enabled=1
check the yum configuration by typing
# yum clean all
# yum list packagename
ex.
# yum list nmap
first, create mount point directory where iso file to be mounted
ex.
# mkdir /mnt/iso/
then mounting your iso file to mount point directory using the syntax
# mount -o loop file.iso mountdir
ex.
# mount -o loop linux.iso /mnt/iso/
create configuration file for yum
# vim /etc/yum.repos.d/local.repo
[local-repo]
name=local-repo
baseurl=file:///mnt/iso/
gpgcheck=0
enabled=1
check the yum configuration by typing
# yum clean all
# yum list packagename
ex.
# yum list nmap
Comments
Post a Comment