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 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 }

I am a new Debian Linux v.7.x / Ubuntu Linux LTS user. How do I reinstall a package using apt-get command line?

{ 1 comment }

I have Mac OS X Mountain Lion. I need to compile a few apps and Perl modules. I already installed Xcode from app store but I’m unable to find gcc compiler or make command. How do I install gcc on Mac OS X 10.8.x?


I am a new Debian Linux version 7 user. I found out that Pandora player is not working due to Adobe flash player. How do I install and use flash player on Debian 7 with Firefox browser?


I recently switched from OS X to Ubuntu. When I run the ‘vim file.c’ command at terminal, I see an error message that read as follows:

The program ‘vim’ can be found in the following packages:
* vim
* vim-gnome

* vim-tiny
* vim-athena
* vim-gtk
* vim-nox
Try: apt-get install <selected package>

How do I fix this problem and why vim is not a default text editor on Ubuntu Linux? How can I install full-fledged vim text editor in Ubuntu Linux?


How do I set an rpm build environment on CentOS / RHEL / Red Hat Enterprise Linux version 6.x? How can I set rpm build environment on latest version of Fedora Linux?


I am a network admin who recently made the switch from MS-Windows to Ubuntu Linux. I need to use Java and Firefox web browser plugin to run java applet. I am unable to access many devices such as Firewall appliance, LBS/VPX, and network equipments due to Ubuntu’s incompatible openjdk and icedtea plugin. I also searched software center but unable to find Oracle Java 7. How do I install Oracle Java 7 and get rid of this incompatibility problems on Ubuntu Linux amd64 v12.04 LTS or v13.04+?