Showing posts with label red hat linux. Show all posts
Showing posts with label red hat linux. Show all posts

Friday, January 09, 2015

Query latest updates in Linux via RPM (YUM)

rpm -qa --qf '%{INSTALLTIME} %{INSTALLTIME:date}: %-40{NAME} %{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -n  | cut -d' ' -f2-
{InstallTime:Date}               {NAME}                                   {VERSION}-{RELEASE}.{ARCH}
...
Fri 09 Jan 2015 11:08:56 AM EST: ntp                                      4.2.6p5-2.el6_6.x86_64
Fri 09 Jan 2015 11:09:00 AM EST: mailx                                    12.4-8.el6_6.x86_64
Fri 09 Jan 2015 11:09:06 AM EST: jasper-libs                              1.900.1-16.el6_6.2.x86_64

This queries all your installed RPM packages (rpm -qa) and prints them using a format (--qf) with the time of installation first in seconds since the epoch(%{INSTALLTIME}). The result is sorted by the first time field, and then that time field is removed.

%-40{NAME} Package Name (40 characters, left justified)
%{VERSION} Version
%{RELEASE} Release
%{ARCH} Architecture (e.g. 64 bit or 32 bit)

Friday, September 14, 2012

Verifying what fonts are on your RHEL6 system

Tried to run xlsfonts but got error Install package 'xorg-x11-xfs-utils' to provid....

Run yum install xorg-x11-xfs-utils to fix this issue.

Successfully ran xlsfonts | more

Now let's check for the Microsoft Web Fonts... xlsfonts | grep ^-microsoft.

Sigh, no luck.

Wednesday, September 12, 2012

Welcome to Red Hat 6 (RHEL6)?!

Well, I am apparently back to the world of Linux after 20 years. Wow, that makes me feel old. I haven't used it since college, so needless to say I'm out of practice.

Going forward, I will be posting a number of noob discoveries as I work on re-learning Linux.

First one... how do I determine what version I'm running?

cat /etc/issue

Returns:
Red Hat Enterprise Linux Workstation release 6.3 (Santiago)

Another way...
cat /etc/*-release

Returns:
Linux Client for e-business (RHEL) 6.3 (Gold Master)
Open Client RHEL 64 3.30 (Gold Master)
Red Hat Enterprise Linux Workstation release 6.3 (Santiago)