75
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 ...
23
votes
Official online RPM package browser / search for CentOS
https://pkgs.org/ provides a "Linux Packages Search" for several distributions, including CentOS 5–7.
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
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
...
3
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
Wrong date/time in dmesg
Try "journalctl -k" instead of "dmesg"
Details: https://serverfault.com/a/1083381/189414
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
Dell PowerEdge R540 Installing RHEL 5.3 Legacy OS on new hardware
This is a situation where you should virtualize the workload.
Use VMware ESXi or an open-source alternative to leverage modern hardware, coupled with a guest OS running the preferred variant of RHEL.
...
1
vote
proc's limit and ulimit -f don't match
In systems using systemctl to manage services like centos 7, there is a special place to set limits for systemctl services. You can put a config file in folder /etc/systemd/system/$service_name....
1
vote
Clone a RHEL 5 box into a smaller disk
You can use GParted to resize your RHEL5's partitions then use 'Volume Based Cloning' in Vmware's converter.
This should work unless you have reason to keep your physical RHEL completely as is...
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
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 ...
1
vote
How can I check from the command line if a reboot is required on RHEL or CentOS?
Here is my version of the alexm code.
You can do this:
LAST_KERNEL=$(rpm -q --last kernel | perl -pe 's/^kernel-(\S+).*/$1/' | head -1)
CURRENT_KERNEL=$(uname -r)
if [ $LAST_KERNEL != $...
1
vote
What version of RHEL am I using?
A late arrival to this, but I had fun trying to figure out the RHEL version on several remote nodes. So, if you have a batch of servers that use the same password (I know, I know...) here is a quick ...
1
vote
What version of RHEL am I using?
If you want to just get the version numbers the following is about as short and simple as I can get it.
Tested on rhel 6.7, rhel 7.2, debian 8.3 and ubuntu 14.04:
lsb_release -s -r | cut -d '.' -f 1
...
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