Hot answers tagged

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 ...
xddsg's user avatar
  • 3,362
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.
simon04's user avatar
  • 325
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 ...
Cameron Kerr's user avatar
  • 3,999
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 ...
Tometzky's user avatar
  • 2,679
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 ...
GrangerX's user avatar
  • 166
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
  • 28k
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. ...
João Carlos Mendes Luís's user avatar
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
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....
Andrew's user avatar
  • 484
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

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
alexus's user avatar
  • 13k
2 votes

Wrong date/time in dmesg

Try "journalctl -k" instead of "dmesg" Details: https://serverfault.com/a/1083381/189414
16851556's user avatar
  • 426
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.
shodanshok's user avatar
  • 46.3k
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 ...
Tilman Schmidt's user avatar
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 ...
HBruijn's user avatar
  • 75k
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
  • 521
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,684
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
Nullpointer's user avatar
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. ...
sa289's user avatar
  • 1,318
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

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 ...
AlbertoConradoMX's user avatar
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
c4f4t0r's user avatar
  • 5,231
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:/...
Nocturn's user avatar
  • 133
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
  • 205
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,394

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