Red Hat RPM Dependency problem

Well when RPM works, you think life is better and when it does not works then you thinks life sucks 😉 However, RPM has –aid option that solves the Dependency problem. It is created to automatic installation of dependent packages. To use this –aid switch with rpm you need to install special RPM package first called rpmdb-redhat. Locate this package from CD and install it via rpm command:

ADVERTISEMENTS

# rpm -ivh rpmdb-redhat*

Once installed then use rpm command as follows:

# rpm -ivh --aid mysql*

OR

# rpm -ivh --aid rpm-file-name-version.rpm

It will install mysql client with all dependencies. If you are RHN subscriber then you don’t have to use rpmdb-redhat package use up2date command (see how to configure RHN):

# up2date -i -v mysql*

Please note that –aid switch does not works with third party RPM. Fedora user must use YUM. –aid works best if you have all rpm packages copied to single directory on hard disk or on ftp/http server. For example:

# rpm --aid -ivh http://installserver.mycorp.com/rpms/mysql*

See also:

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source & DevOps topics via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
4 comments… add one
  • Dennison Uy Apr 22, 2010 @ 13:21

    Installing via RPM was getting to be a pain. I’m checking out the –aid method right now. Will it download missing RPMs as well?

  • likith Feb 9, 2011 @ 13:02

    how to install in centos

  • santosh Nov 6, 2012 @ 14:06

    can any one tel me how to install packages from hard disk ?

  • santosh Nov 6, 2012 @ 14:07

    how to install packages from hard disk using rpm in virtual machine ?

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.