Category Archives: RedHat

List packages by install date

A handy ‘one liner’ that lists all the packages installed on a RedHat system by the install date. $ rpm -qa --qf $'%{INSTALLTIME}\t%{INSTALLTIME:date}\t%{NAME}\n' | sort -n -r -k1 | cut -f2,3 Sun 09 Jun 2019 17:26:04 BST systemd-sysv Sun 09 Jun 2019 17:26:04 BST systemd-libs Sun 09 Jun 2019 17:26:04 BST rsync   :   :   : Thu 02 Nov 2017 12:49:32 GMT bzip2-libs Thu 02 Nov 2017 12:49:13 GMT fontpackages-filesys Thu 02 Nov 2017 12:49:13 GMT basesystem $  This command uses format specifier … Continue reading

Posted in RedHat | Tagged | Leave a comment

Script to set the MTU size in RedHat

The following script makes it easy to set the MTU size if you are using RedHat or CentOS 7.x, and has also been tested successfully on RedHat 6.x.

Posted in Linux, Networking, RedHat | Tagged | Leave a comment

Warning RPMDB altered outside of yum

This is just a warning that a package has been installed or removed directly using  rpm  command instead of  yum .

Posted in CentOS, RedHat | Tagged | Leave a comment

Removing version numbers from … well anything

This one liner can remove the version numbers from any string (providing they start with a hyphen and a digit).

Posted in CentOS, Linux, RedHat | Tagged | Leave a comment

Using RPM to find package dependencies

I recently discovered that is it actually rather difficult to determine which packages depend on a particular package using the RedHat Package Manager, and I ended up writing a short script to list all the dependencies for a particular package.

Posted in CentOS, RedHat | Tagged , | Leave a comment

Reset a dynamically assigned host name

Recently I noticed that when using DHCP my RedHat system was picking up a dynamically generated host name, which was then being used when I registered the system with the subscription manager.

Posted in RedHat | Leave a comment

Setting the network MTU size

Though in general it is not necessary there are (rare) occasions when it is necessary to set the MTU size explicitly, generally caused by issues with path MTU discovery.

Posted in CentOS, Debian, Linux, Networking, Raspbian, RedHat, Ubuntu, Uncategorized | Leave a comment

Configuring Network Interfaces in RedHat

A minimal install of RedHat 7.x does not enable the network by default (network interfaces are enabled when you login to the GUI bu the network manager – which doesn’t work if there is no GUI).

Posted in CentOS, RedHat | Tagged , , | Leave a comment

Changing network device names

The latest versions of the kernel now rely on the BIOS enumeration of device names which means that the name of the network interface can change depending on your bus configuration (specifically where your network interface is connected).

Posted in CentOS, Debian, Linux, Networking, RedHat, Ubuntu | Tagged , | Leave a comment

Configuring X Windows on a Virtual Machine

When using X windows on a virtual machine I have found that the screen resolution is detected automatically it can often default to a maximum resolution of 1024×768 pixels.

Posted in CentOS, Debian, Linux, Raspbian, RedHat, Ubuntu | Tagged | Leave a comment