yum
Ansible: How can I update the system CentOS with Ansible
The first task you’re telling the system to only update the yum cache. On the second you are effectively upgrading all packages to the latest version by using state=latest but you should also use update_cache=yes on the same task to be sure you’re refreshing the cache with its latest package information. The yum module documentation … Read more
Can yum tell me which of my repositories provide a particular package?
yum list packagename That will show from which repository the package is in the third column of the output. For already installed packages, that won’t work, as the third column shows just installed. In that case you can do e.g. rpm -qi packagename, typically the Vendor, Packager and Build Host tags will give an indication … Read more
Duplicate Package – update / upgrade – Centos
For me it looks like you rebooted your computer (or it crashed) while you where in the process of upgrading packages. So new packages where installed, but old packages where not removed. First look if you have any uncomplete transactions with: yum-complete-transaction If this doesn’t help then take a look at the package-cleanup tool which … Read more
YumRepo Error: All mirror URLs are not using ftp, http[s] or file
Be sure that you can ping vault.centos.org. Then edit /etc/yum.repos.d/CentOS-Base.repo Comment out mirrorlist and uncomment baseurl Change all baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ to baseurl=http://vault.centos.org/$releasever/centosplus/$basearch/ And enjoy your yum update!!! 😉
Can’t install python-dev on centos 6.5
On CentOS, the python development libraries are under the name python-devel, not python-dev. So you should use sudo yum install python-devel to install them on your CentOS system. You can search the repositories available to you using the yum search xxxxx command, where xxxxx is the name or part of the name of the package … Read more
How to install maven on redhat linux
Go to mirror.olnevhost.net/pub/apache/maven/binaries/ and check what is the latest tar.gz file Supposing it is e.g. apache-maven-3.2.1-bin.tar.gz, from the command line; you should be able to simply do: wget http://mirror.olnevhost.net/pub/apache/maven/binaries/apache-maven-3.2.1-bin.tar.gz And then proceed to install it. UPDATE: Adding complete instructions (copied from the comment below) Run command above from the dir you want to extract maven … Read more
Can’t use yum inside Docker container running on CentOS
Turns out the user was set to jboss in the base image. When is switched to user root with the dockerfile command USER root everything worked.
/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
yum install glibc.i686 install this.