Package Manager HowTos

Topic include Linux and Unix package management system including apt-get, yum, and other package manager. Example includes installing, upgrading, configuring, troubleshooting, and removing software packages on Linux and Unix like oses in a consistent manner ( rss feed ).

I would like to see detailed information on the history of yum transactions such as updates, deleted packages, and other information. How do I see history of yum commands on CentOS / RHEL 6.x based server? How do I undo or redo or rollback packages using yum command?


CentOS Linux v6.5 has been released and available via repos for immediate update. The new version includes several hundred bug fixes for, and enhancements to the Linux kernel. How do I upgrade from CentOS Linux version 6.0 / 6.1 / 6.2 / 6.3 or 6.4 to the latest version 6.5?


How do I setup and manage a virtualized environment with Kernel based Virtual Machine (KVM) in CentOS or Red Hat Enterpise Linux version 6 server on IBM server? Can you provide step-by-step commands of how to install and manage Virtual Machines (VMs) on a physical server using KVM for RHEL/CentOS version 6.4?


I need to tunnel X Window securely over SSH bases session so that I run X program on my remote Linux/Unix server/workstation and get back display to my Apple Macbook pro laptop. I tried the ssh -X user@server1ssh -Y user@server2 command on both OS X Mountain Lion and Apple OS X Mavericks. But, I am unable to use the ssh command with X11

How do I fix this problem on OS X and enable X11 forwarding with ssh command? How do I install XQuartz ( server on Apple OS X Mountain Lion or Mavericks?


I am a new CentOS Linux user running my community site on production server. I want to update all packages except the Linux kernel on CentOS Linux. How can I prevent the yum command from updating the Linux kernel on CentOS/RHEL/Scientific/Fedora Linux server?

{ 1 comment }

I am using Ubuntu 12.04.2 LTS (“precise”). I am trying to upgrade all packages using kernel via apt-get upgrade method. But, I am getting the following message:

apt-get upgrade

Reading package lists… Done

Building dependency tree

Reading state information… Done

The following packages have been kept back:

linux-headers-virtual linux-image-virtual mysql-client-5.5 mysql-server-5.5


The following packages will be upgraded:

base-files dosfstools linux-libc-dev linux-libc-dev:i386

4 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

Need to get 1,847 kB of archives.

After this operation, 2,048 B of additional disk space will be used.

Do you want to continue [Y/n]?

How do I fix this issue and install linux-headers-virtual linux-image-virtual packages which have been kept back in Ubuntu Linux LTS version 12.04.2?


I mount /tmp with nodev, nosuid, and noexec options to increase the security of my Linux based web server. And, whenever I ran apt-get install or apt-get upgrade command, I am getting the following error:

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-43-generic
Found initrd image: /boot/initrd.img-3.2.0-43-generic
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-43-generic
W: TMPDIR is mounted noexec, will not cache run scripts.

How do I fix this problem without compromising security of the data or web-server?

{ 1 comment }