Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Copyrighted material

Red Hat RPM Dependency problem


Posted By nixCraft <webmaster@cyberciti.biz> On October 21, 2005 @ 3:30 pm [ 4 Comments ]
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:
# 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 dont have to use rpmdb-redhat
package use up2date command (see how to configure RHN
[1]
):
# up2date -i -v mysql*
Please note that --aid switch does not works with third party RPM. Fedora user must use YUM
[2]
. --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:
RPM cheat sheet
[3]
Article printed from www.cyberciti.biz
URL to article: http://www.cyberciti.biz/tips/red-hat-rpm-dependency-problem.html
URLs in this post:
[1] configure RHN: https://rhn.redhat.com/rhn/help/quickstart.jsp
[2] YUM: http://www.cyberciti.biz/tips/nixcraft/forum/viewtopic.php?t=244&start=0
[3] RPM cheat sheet: http://www.cyberciti.biz/tips/howto/question/linux/linux-rpm-cheat-sheet.php
Copyrighted material
Copyright 2004-2014 nixCraft. All rights reserved. This print / pdf version is for personal non-commercial use only. Unless otherwise indicated, the
documents and graphics stored on this Web server, www.cyberciti.biz, are copyrighted. Links to these documents are permitted and encouraged. No
copies may be made without permission. More details - http://www.cyberciti.biz/tips/copyright
nixCraft is GIT UL++++ W+++ C++++ M+ e+++ d- Page 1 of 1

You might also like