Hot answers tagged

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 ...
xddsg's user avatar
  • 3,452
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.
simon04's user avatar
  • 345
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
ptman's user avatar
  • 29k
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 ...
Wernfried Domscheit's user avatar
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....
Andrew's user avatar
  • 504
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 ...
Liczyrzepa's user avatar
2 votes

Wrong date/time in dmesg

Try "journalctl -k" instead of "dmesg" Details: https://serverfault.com/a/1083381/189414
16851556's user avatar
  • 496
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 ...
Gothrek's user avatar
  • 541
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 ...
bao7uo's user avatar
  • 1,714
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. ...
ewwhite's user avatar
  • 198k
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....
sagnitude's user avatar
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...
Sam Perry's user avatar
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. ...
mwans's user avatar
  • 11
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 ...
Harka Gyozo's user avatar
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 ...
Shōgun8's user avatar
  • 214
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 ...
LukeInDC's user avatar
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 ...
Cristiano Ness's user avatar
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 ...
tripleee's user avatar
  • 1,483
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 != $...
sandman's user avatar
  • 11
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 ...
Lefty G Balogh's user avatar
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 ...
aseq's user avatar
  • 4,660

Only top scored, non community-wiki answers of a minimum length are eligible