118
The correct fix is to update your SSL certificates.
sudo yum upgrade ca-certificates --disablerepo=epel
You need to disable the epel repo so that this command will succeed. After you update your certificates you can use yum normally as EPEL will work again.
106
Frankly, because you did something you didn't fully understand. Python is an essential part of the OS and the things you considered unimportant are very important. Restore from backup.
When you removed Python, yum showed you a long list of packages that would also be removed. This list contains such essentials as yum itself, coreutils, net-tools and others....
84
You can discover which package contains the program you want using yum provides:
yum provides /usr/bin/ab
Then you will see that ab is in the httpd-tools package.
And now you can install it:
yum install httpd-tools
Beginning with RHEL/CentOS 7, you can also supply a filename contained within a package, and yum will automatically locate and install the ...
answered Jun 9 '13 at 0:07
Michael Hampton
215k3434 gold badges418418 silver badges800800 bronze badges
77
Have you tried this?
$ yum list installed bind
67
I'm sincerely sorry: I can feel the pain to have a server unbootable/unserviceable.
However, I'm lost when reading that:
After that it asked me something about removing dependencies and it
looked like nothing I could miss so I clicked [Y]
The list of to-be-removed packages surely was really huge, as python is an essential part of RHEL/CentOS. You ...
60
https://access.redhat.com/discussions/3106621#comment-1196821
Don't forget that you might need to reboot because of core library updates, at least if it is glibc. (And also, services may need to be restarted after updates).
If you install the yum-utils package, you can use a command called needs-restarting.
You can use it both for checking if a full reboot ...
60
It seems like somehow yum cached data and the rpm database got out of sync with each other I guess.
Try running the next commands:
su -c 'yum clean all && rpm --rebuilddb'
su -c 'package-cleanup --problems'
Then run:
su -c 'yum erase zarafa*'
Edit #1:
Try running the next command:
# su -c 'yum --setopt=tsflags=noscripts remove zarafa*'
If that ...
59
The rpm command has the --nodeps option that you can use. A challenge is that rpm by itself is not aware of yum repositories. The following command will install or update the package, ignoring dependencies, but automatically looking up the download URL from your repositories with repoquery which is in package yum-utils.
rpm -Uvh --nodeps $(repoquery --...
44
As you can see from the output, the release version has changed from 6.6 to 6.7:
centos-release.x86_64 6-7.el6.centos.12.3 base
So this is perfectly normal.
http://wiki.centos.org/Manuals/ReleaseNotes/CentOS6.7
39
In case you want to know which packages are excluded due to priority protections you can use
yum list updates -d3
35
This is an old question, but it is still one the first results in google search, so I'd like post the solution that got my problem solved.
1) create a new file /etc/yum.repos.d/city-fan.repo
2) Paste the following contents:
[CityFan]
name=City Fan Repo
baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch/
enabled=1
gpgcheck=0
3) ...
30
There are at least two reasons for rebooting:
You probably want to use the advantages of the newer version (security fixes)
Usually during a kernel update the module tree of the old kernel is removed. Thus if you (or some script) unload a module then the system cannot load it again because it finds only the newer one on disk (if at all) and this is compiled ...
28
two solutions
in the plugin configuration file disable plugin
vim /etc/yum/pluginconf.d/subscription-manager.conf
enabled=0
or register to the satellite
27
"I've installed foobar version 2, compiled from sources"
Take the extra effort when adding custom software to your system and package your additions in a RPM. See Martin Streicher, 2010-01-12, Building and distributing packages, IBM on how to do that.
Then install that resulting RPM so it can and will play nice with your package manager's conflict and ...
23
Worked for me:
yum remove php httpd php-cli php-xml php-common httpd-tools
yum install php55 php55-mysql php55-pdo
22
Yum supports plugins, so it's entirely possible to write a plugin that reads the cached puppet manifest and warns when a transaction will overwrite a puppet-controlled file. I'm not aware of an existing plugin that does this, but I will probably write just wrote one myself as I like the idea.
The plugin checks all newly installed/upgraded/downgraded ...
answered Oct 16 '13 at 20:22
Dennis Kaarsemaker
17.6k11 gold badge4040 silver badges6666 bronze badges
21
Generally speaking speaking security updates are considered to be somewhat safe, particularly for a distribution with goals like RedHat. Their core focus is creating an operating environment that is consistent. As such the maintainers tend to pick versions of packages and stick with them for the long haul. To see what I mean look at the versions of such ...
21
1 is the RPM epoch number. It overrides the normal comparison order on version checking. So, if there is some odd reason why you as a packager want to mark a lower version number as an upgrade, you can tag it with an Epoch number.
yum info xorg-x11-xauth
Name : xorg-x11-xauth
Arch : x86_64
Epoch : 1
Version : 1.0.9
Release : 1....
21
As noted in the comments and supported by RHEL documentation, another command (that worked in my situation) is:
yum history sync
It will iterate through the installed RPMs and synchronize the rpm & yumdb databases.
21
In RHEL 5 and previous versions, yum install only accepted package names from enabled repositories, and did not accept paths to local RPMs; you had to use yum localinstall to install these.
In RHEL 6 and later, yum install accepts both package names and local filenames, so localinstall is no longer necesary, but it's included for backward compatibility.
In ...
answered Nov 20 '18 at 2:02
Michael Hampton
215k3434 gold badges418418 silver badges800800 bronze badges
21
You can simply download the packages and install them again with rpm , without having python on your system and a broken yum.
Find the version you had installed
rpm -qf /usr/bin/python
Then find a download URL and either download and install in one go or in separate steps:
sudo rpm --reinstall -v https://rpmfind.net/linux/centos/7.8.2003/os/x86_64/Packages/...
20
You could just build from the sources.
The following worked for me (although you may not want to do the update or install every package in "Development tools" and "Additional Development"):
sudo yum update
sudo yum groupinstall "Development tools"
sudo yum groupinstall "Additional Development"
wget https://archive.apache.org/dist/subversion/subversion-1.7....
20
The previous Jason answer is working for centos 6.x.
For centos 7 and yum-cron package, the config file is /etc/yum/yum-cron.conf.
If you wish to exclude some packages from auto-update mechanism, you'll have to add an exclude line, at the bottom of the file, in the base section.
Example :
[base]
exclude = kernel* owncloud* php* httpd*
This will override ...
19
I followed the instructions from Install Apache/PHP 5.4.10 on Fedora 17/16, CentOS/RHEL 6.3/5.8 with a slight modification. It took maybe 10min. My exact commands are shown below. Note that the first command had to be changed from what is shown in the article. The change was from epel-release-6-7.noarch.rpm to epel-release-6-8.noarch.rpm.
How to add a repo ...
19
There's a much easier way of issuing this query: rpm -qa | grep bind or rpm -q bind. The former is best if you're not completely sure of the package name.
18
The key thing to pick up is centos-release.x86_64, which is being upgraded to 6-7.el6.centos.12.3. You haven't said which subversion of CentOS you're on, but assuming you're up to patch, you're on 6.6 - this is the new 6.7 release hitting the mirrors.
Those of us using the cr (continuous release) repository saw many of these packages arrive late last week.
17
Per Bug 1274211, this has been fixed in yum-3.4.3-133.el7. However, you need to enable the strict mode.
The easiest way to do this for scripting purposes is via command-line switch:
yum -y --setopt=skip_missing_names_on_install=False install another_package.x86_64 some_package.x86_64 && run_my_script
However, you can also set it as a ...
17
# rpm -qp --scripts getpagespeed-extras-release-7-1.el7.gps.noarch.rpm
warning: getpagespeed-extras-release-7-1.el7.gps.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID 222b0e83: NOKEY
postinstall scriptlet (using /bin/sh):
curl -s -m 3 https://www.getpagespeed.com/SCM/release-post-install.php 2>/dev/null | bash >/dev/null 2>&1
https://www....
16
yum --releasever=6.3 update
will stick to 6.3 repo.
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
yum × 1404centos × 541
linux × 314
redhat × 251
rpm × 229
php × 115
centos7 × 102
centos6 × 101
repository × 80
update × 78
installation × 66
package-management × 64
mysql × 58
amazon-ec2 × 55
fedora × 50
centos5 × 48
dependencies × 46
rhel6 × 42
python × 40
amazon-web-services × 31
packages × 31
rhel5 × 29
puppet × 24
apache-2.2 × 23
apt × 23