CentOS 6.x — how to find required package to install?

gkdsp asked:

I’m not that experience with Linux, but I’m trying to install some software on 64-bit CentOS 6.3 that requires the following packages (copying them exactly as written in the documentation stating they’re required external dependencies for Red Hat, SUSE, Fedora, and CentOS):

HAL packages: libhal1 
QT library:   libqt4-core

The software explicitly supports 64-bit CentOS 6.3, as well as other other Linux flavors.

Where can I find these packages? I don’t see them here:



I also tried yum info pkgname and yum search pkgname as root user and using various wildcards in pkgname to expand the search, but found nothing.

What do people do in these situations?

Any idea? Thanks in advance.

My answer:

If you are installing RPM-packaged software for your distribution, you can just use yum to install it, and it will locate and install the dependencies automatically, provided it was packaged correctly by its maintainer.

yum install /tmp/mypackage-1.2-3.x86_64.rpm

Note that you can’t do this with packages from incompatible distributions (e.g. you can’t install a SuSE package on CentOS).

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.