New answers tagged

0

Arlion is right, but there is a down side, a big one. Better to use mount -o bind /dev/urandom dev/urandom In my experience with Centos 7 if all of /dev is mounted much of the time even after it is unmounted /dev/pts is screwed up so that ssh logins to that machine will fail. When this is happening ssh willl not connect and this message is observed: ...


0

yum wants thos library versions to match. libstdc++ for example will have to be installed with the exact same version number for both 32 and 64 bit. Your proposition to remove the 32bit versions and then re-install them won't work; yum won't allow you to reinstall those 32bit versions if they don't match the exact same version number. What happens is that ...


0

You should read this page to understand the order of script that run upon rpm installation. Most importantly: %post of new package %postun of old package so the %postun script of your old package runs after the %post script of your new pacakage. What you probably want to do is: %postun if [ $1 = 0 ] then # the package is really being uninstalled, not ...


0

For me, the following command worked: yum repolist -v | grep Repo-baseurl | awk '{print $3}' instead of this one: yum repolist rhcd -v | grep Repo-baseurl | awk '{print $2}' And for multiple yum-repos, you could do the following: for repourl in $(yum repolist -v | grep Repo-baseurl | awk '{print $3}') ; do echo $repourl; curl -s --dump-header - $...


1

It may happen that you don't have the password to reboot the server. It is not possible to disable without a reboot. But the mode can be set to permissive. (for this session only!) setenforce 0 (changes from enforcing to permissive) sestatus (to confirm the current mode) sources: How to disable selinux original answer


2

NB: This answer is provided only for completeness; CentOS 5 is past end of life and rpmforge is a dead project. Neither should be used anymore. You previously installed libyaml from the third party repository "rpmforge", but then you disabled that repository. To install the corresponding libyaml-devel package, you need to re-enable that repository, either ...


0

All of the above but also: ps -ef | grep yum # kill off all yum processes ps -ef | grep rpm # kill off rpm processes I couldn't get any of the above to work until I did this. Credit to: https://cloudlinux.zendesk.com/hc/en-us/articles/115004580385-If-RPM-or-yum-processes-hangs


Top 50 recent answers are included