Tonight when upgrading a CentOS Linux server it was noted by YUM that 15MB more disk space was needed to upgrade grub and the kernel itself. Below are four quick steps to verify what kernels are installed, install yum-utils if it is not installed already, delete previous kernels and set YUM to remove old kernels…
In the past I used CentOS Linux the open source RedHat Enterprise Linux clone but these days I find myself using Ubuntu Linux more and more often because so many more packages that clients want installed are more up to date. One command I used to use on CentOS all the time was the yum whatprovides command which would allow me to search for specific applications, scripts, libraries, etc. to figure out what packages I needed to install. The command that is similar on Ubuntu is apt-file which does not come installed by default. Below I show the output of an example yum whatprovides command on CentOS Linux followed by what needs to be done to use apt-file on Ubuntu Linux.
IBM Java SDK Install Error: Failed dependencies: /usr/lib64/libstdc++.so.5 is needed by ibm-java-x86_64-sdk-6.0-9.1.x86_64
While setting up a websphere test server I ran into a minor dependency error during the beginning of installing the necessary packages for websphere. The IBM Java SDK RPM on CentOS 6 was complaining about a failed dependency of a libstdc++ library. The RPM I was attempting to install required libstdc++.so.5 and CentOS 6 has libstdc++.so.6 installed by default. All that is required is to install the libstdc++ compat RPM. The information below describes the error in more detail, how I located the package that installed the necessary file(s), and an example of installing the needed package.
The ATrpms repository provides many bleeding edge software packages so if you have a development server where you install new apps this repo can be very useful. The instructions are not 100% clear about how to install this repository on CentOS Linux which would also be the same on RedHat Linux but not on Fedora Linux. Anyhow the example used on the ATrpms site relates to Fedora so the repo file needs to be modified to work on CentOS as noted below.
While running a configure script before compiling an application on CentOS Linux I received an error regarding libdaemon which caused the configure script to fail. Using YUM I was able to list the available packages that included libdaemon in the name, install one, and then move past that error in the configure script. Below I show how to list packages using YUM with libdaemon in the name and then show example output of installing libdaemon-devel which is the package needed by the configure script.