cat /etc/yum.conf
[root@server ~]# cat /etc/yum.conf
#================= DO NOT MODIFY THIS FILE =================
#
#Manual changes will be lost when this file is regenerated.
#
#Please read the developer's guide, which is available
#at NethServer official site: https://www.nethserver.org
#
#
[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=https://github.com/NethServer/dev
distroverpkg=centos-release
#
#20proxy - disabled
#
#
#30groups use compat group mode
#
group_command=compat
#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
http_caching=none
rpm -qa python rpm* yum* # get packages version
[root@server ~]# rpm -qa python rpm* yum*
yum-plugin-fastestmirror-1.1.31-45.el7.noarch
yum-3.4.3-158.el7.centos.noarch
rpm-python-4.11.3-32.el7.x86_64
rpm-4.11.3-32.el7.x86_64
yum-metadata-parser-1.1.4-10.el7.x86_64
rpm-libs-4.11.3-32.el7.x86_64
yum-plugin-changelog-1.1.31-45.el7.noarch
rpm-build-libs-4.11.3-32.el7.x86_64
yum-cron-3.4.3-158.el7.centos.noarch
python-2.7.5-68.el7.x86_64
rpm -qaV python rpm* yum* # verify file properties against rpm database
[root@server ~]# rpm -qaV python rpm* yum*
S.5....T. c /etc/yum.conf
S.5....T. c /etc/yum/yum-cron.conf
yum --noplugins check-update # try yum without plugins (probably will make no difference, but just in case)
[root@server ~]# yum --noplugins check-update
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 375, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 170, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 295, in getOptionsConfig
(opts, self.cmds) = self.optparser.setupYumConfig(args=args)
File "/usr/share/yum-cli/cli.py", line 2311, in setupYumConfig
if not self.base.conf.usercache and os.geteuid() != 0:
AttributeError: 'YumConf' object has no attribute 'usercache'
yum --setopt usercache=1 check-update # try with the reported usercache attribute
[root@server ~]# yum --setopt usercache=1 check-update
Loaded plugins: changelog, fastestmirror, nethserver_events
Main config did not have a usercache attr. before setopt
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 375, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 170, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 354, in getOptionsConfig
self.parseCommands() # before we return check over the base command + args
File "/usr/share/yum-cli/cli.py", line 396, in parseCommands
self._set_repos_cache_req()
File "/usr/share/yum-cli/cli.py", line 445, in _set_repos_cache_req
if repo._matchExpireFilter():
AttributeError: 'YumRepository' object has no attribute '_matchExpireFilter'
yum history info <transaction ID number or * wildcard>
[root@server ~]# yum history info <transaction ID number or * wildcard>
-bash: syntax error near unexpected token `newline'