Linux – CentOS 6.x — how to find required package to install

centoslinuxyum

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 
              libhal-storage1
QT library:   libqt4-core
              libqt4-gui

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:

http://centos.mirror.nexicom.net/6/os/x86_64/Packages/

http://rpm.pbone.net/

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.

Best 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).