Technology Insights

Ubuntu Equivalent Of yum whatprovides On CentOS

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.

Technology Insights

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.

Technology Errors

CentOS Linux Configure Script Error – No package ‘libdaemon’ found

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.

Technology Insights

What Package Installs more Via Yum On CentOS Linux

Typically you don’t need to install more because it is always already installed. The other night while researching something on a Windows 7 computer that had Cygwin installed we were looking to use more but it wasn’t installed. I am not sure if all default Cygwin installations don’t include more but in this case it didn’t. I typically use YUM to figure out what package provides specific applications if they are bundled with something else and not named by the command itself. Below is the output of yum whatprovides from a CentOS server when searching for the Linux package that installs more.