Closed EvgenyPrikhodko closed 3 years ago
cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
exclude=ansible1.9,mariadb,mariadb-*,Percona-XtraDB-*
maybe let the script delete the lines?
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
Do you have an /etc/yum.conf.rpmnew
file? Because you edited the file to add the exclude
line, the initial switch can't change this file automatically. We'll have to address that.
Yes:
ls -lh /etc/yum.conf*
-rw-r--r-- 1 root root 1.1K Jan 25 00:35 /etc/yum.conf
-rw-r--r-- 1 root root 813 Jul 20 2020 /etc/yum.conf.rpmnew
Do you have an
/etc/yum.conf.rpmnew
file? Because you edited the file to add theexclude
line, the initial switch can't change this file automatically. We'll have to address that.
I edited the file (/etc/yum.conf) after yum distro-sync
Ok, thanks. We need to modify the script to replace the modified /etc/yum.conf
with the new version and save the old one for reference.
CentOS 7.
Bitrix.zip
A similar problem was discussed https://github.com/oracle/centos2ol/issues/51