Posted: Sat Jan 16, 2016 10:44 am Post subject: تنظیم repository به حالت offline
در centos7 برای اینکه بتوانیم از yum طوری استفاده کنیم که بصورت آفلاین عمل کند و دیگر نیاز به اینترنت نداشته باشد بشرح ذیل اقدام می کنیم:
mkdir -p /var/www/html/centos7
mount -o loop CentOS-7.0-1406-x86_64-DVD.iso /mnt
cd /mnt
tar cvf - . | (cd /var/www/html/centos7; tar xvf -)
cd /; umount /mnt
Posted: Tue Mar 16, 2021 2:45 pm Post subject: CentOS 8
قبلش همه فایل های *.repo را باید به پوشه tmp ببرید که فقط همین فعال باشد .
# mount CentOS-8-x86_64-1905-dvd1.iso /opt
# cd /opt
# ls
# cp -v /opt/media.repo /etc/yum.repos.d/centos8.repo
# chmod 644 /etc/yum.repos.d/centos8.repo
# ls -l /etc/yum.repos.d/centos8.repo
# cat etc/yum.repos.d/centos8.repo
# vim etc/yum.repos.d/centos8.repo
Delete all the configuration, and copy & paste the configuration below.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum