How to change sshd default port on firewalld

  Instead of messing around with the ports directly with RHEL7/CentOS7 firewall-cmd, I’ve decided to update the port number in the ssh.xml service file instead. Think it’s cleaner this way. For example, here are the steps to change sshd port from the default 22 to 9876: 1. Make a copy of the default ssh service […]

How to determine which repo a RHEL/CentOS package belongs to

I thought this command should show me which repo the package ‘htop’ belongs to, but I was wrong: [root@server ~]# yum info htop Loaded plugins: rhnplugin, security Installed Packages Name : htop Arch : x86_64 Version : 0.8.3 Release : 1.el5 Size : 136 k Repo : installed Summary : Interactive process viewer URL : […]

Fix outdated/corrupted EPEL repo metadata

yum update failed in RHEL (Red Hat Enterprise Linux) server 5.5 with EPEL repo added: [root@server ~]# yum update Loaded plugins: rhnplugin, security Skipping security plugin, no data Setting up Update Process Resolving Dependencies Skipping security plugin, no data –> Running transaction check —> Package cups.x86_64 1:1.3.7-18.el5_5.8 set to be updated —> Package cups-libs.i386 1:1.3.7-18.el5_5.8 set […]