72
votes
Accepted
How can I check from the command line if a reboot is required on RHEL or CentOS?
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 ...
21
votes
Official online RPM package browser / search for CentOS
https://pkgs.org/ provides a "Linux Packages Search" for several distributions, including CentOS 5–7.
13
votes
How to specify the log file for memcached on RHEL / CentOS
Using 2>&1 >> logfile in the OPTIONS or init script is not wise, as the log file will not get reopened when log rotation occurs, assuming of course that you have put something in place ...
10
votes
sendmail rejecting some connections with handshake failure: SSL alert number 40
This is because after a recent update to openssl on CentOS 6, openssl-1.0.1e-30.el6.11.x86_64, programs using this library started to refuse connecting to servers vulnerable to Logjam TLS ...
8
votes
How can I check from the command line if a reboot is required on RHEL or CentOS?
One thing that can be helpful to look at in terms of "is a reboot required" is whether or not there are any files that have been removed/replaced by the update but for which the old files are still ...
7
votes
How can I check from the command line if a reboot is required on RHEL or CentOS?
uname -a vs. rpm -q kernel and needs-restarting from yum-utils
3
votes
RHEL5: Forbid installation of i386 packages on 64-bit systems?
I've been using option exactarch=1 in /etc/yum.conf for some time, and it has worked for me.
It still allows you to manually specify arch, but if you don't, it install only x86_64, not both.
...
3
votes
What version of RHEL am I using?
I prefer hostnamectl:
$ hostnamectl
Static hostname: xxxxxx.xxx.xxx
Icon name: computer-server
Chassis: server
Machine ID: 3e3038756eaf4c5c954ec3d24f35b13f
...
2
votes
What version of RHEL am I using?
I quite like using the /etc/os-release file, which is in the release RPM:
# yum whatprovides /etc/os-release
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
* base: dl.za....
2
votes
How can I check from the command line if a reboot is required on RHEL or CentOS?
I know this question has been answered already and that folks have posted information about checking for newer kernels as well as deleted files, but I recently wrote a script that checks for both. If ...
2
votes
RHEL5 - Can't update packages because of i386 rpm conflicting with x86_64 rpm
remove conflicted packages:
yum remove rpm sssd-client
and then install them back:
yum install rpm sssd-client
2
votes
Wrong date/time in dmesg
Try "journalctl -k" instead of "dmesg"
Details: https://serverfault.com/a/1083381/189414
2
votes
Accepted
Can I use Oracle's yum repository with RHEL and then go back to Redhat's yum?
While it should work, I strongly suggest to use the CentOS 5 repository: they are binary compatible with RHEL ones, and supported with similar policies.
2
votes
Can I use Oracle's yum repository with RHEL and then go back to Redhat's yum?
Oracle supports the switch from RHEL to OEL but not the opposite direction. In practice this simply means that nobody knows or cares about possible issues with that move. So while there's no guarantee ...
2
votes
yum update doesn't have any update?
The line "This system is receiving updates from RHN Classic or RHN Satellite." in your yum output is a notification from the yum rhnplugin, that the system is registered with your local Satellite ...
2
votes
proc's limit and ulimit -f don't match
Ulimits are inherited from the parent process, if f.e. you login as root and su to the user. You WILL get different limits, than when logging directly onto the user.
The same issue is with start ...
2
votes
EL5 /etc/hosts.deny not denying ".top"?
The hosts.deny file is not used for this - it is just not the correct file to achieve what you want. E-mails from .top are probably being sent from mail servers which have a hostname (fqdn) that is ...
1
vote
How to resize an EXT3 if default block size is changed to 1K from 4K
Using mkfs command to change block site and also other utility to change the block site which below:
1) gpart
2) parted
Other option:
root@space:~# mkfs.ext4 –m 0 -b 4096 /dev/rootfs
1
vote
Installing PHP 5.2 on RHEL 7.1
If you're going to use PHP 5.2, you could be facing a security risk as Michael noted. To help hedge against this risk, you could go with a vendor that backports security fixes into past PHP versions. ...
1
vote
How to diagnose causes of oom-killer killing processes
OOM is only killing the process that has the most memory use at that time. Not necessarily the process that went over the limit or spiked te OOm call.
Also linux is lax with its memory allocation. ...
1
vote
Wrong date/time in dmesg
Recently, I rented a cloud VPS. When I logged into it, the date was on GMT. I changed it to CDT, which is UTC-5:00. I quickly realized that, even though the date command did output the correct time ...
1
vote
Accepted
RHEL5 - Can't update packages because of i386 rpm conflicting with x86_64 rpm
I think is better if you use the whole packet name in this case
yum remove rpm-4.4.2.3-36.el5_11.i386
and
yum remove sssd-client-1.5.1-70.el5.i386
1
vote
Accepted
Why my date command changed and how to restore the default one?
Ok, I found this little bug, I knew it was something small enough to not be noticed. It turns out the PATH variable was being changed when the scripts in cron were ran and ended up like this /usr/bin:/...
1
vote
NFS mount mounted inside another NFS mount disappears randomly
I think the "underlying issue" cannot be corrected. When your /home remounts, for exmple due to connection problems, your nested mount becomes hidden, because the directory where it was mounted to is ...
1
vote
NFS mount mounted inside another NFS mount disappears randomly
It seems you wouldn't have to mount bigdir from the NFS share also. as you are already mounting home with bigdir nested in it. So then you should just have to
mount /home/bigdir /bigdir
Or even ...
1
vote
Exclude a specific repo from YUM Update
You can disable multiple repositories on the yum command line:
yum update --disablerepo=myrepo1 --disablerepo=myrepo2 --disablerepo=myrepo3
However, if you do that, you must explicitly enable the ...
1
vote
Anyone know how to fix issues with omsa on red hat 5.1 that reports "No Controllers found"?
For this failed:
omreport chassis memory
Memory Information
Error : Memory object not found
Stop srvadmin-services.sh:
srvadmin-services.sh stop
The following command can be used to clear ...
1
vote
Anyone know how to fix issues with omsa on red hat 5.1 that reports "No Controllers found"?
I ran into this on a host where a Nagios job was scheduled to check Openmanage. It would manifest as a large number of stale semaphores owned by Nagios.
I put in a nightly cron job to find the stale ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
rhel5 × 379linux × 119
redhat × 82
centos × 30
yum × 29
rpm × 19
apache-2.2 × 16
centos5 × 15
networking × 13
security × 12
mysql × 11
xen × 10
ssh × 9
rhel6 × 9
multipath × 9
php × 8
nfs × 8
lvm × 8
installation × 7
bash × 6
ldap × 6
package-management × 6
kickstart × 6
monitoring × 5
samba × 5