Question on Add/Remove apps, rpm file equivalents?
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Question on Add/Remove apps, rpm file equivalents?
I need to write a script which will manually install all the packages I need for the web server. In the GUI, you can go to Add/Remove apps check webserver and choose the individual extra things you want to install.
My question is, is there a one to one correspondence between each item and a rpm file? For instance, for webserver the GUI list the items: httpd, mod_ssl, squid, php-ldap, etc. Are each one of those single packages and are they related to the file name? If that's the case, I just need to grab each rpm file off the install CD. Thanks for any help.
I would suspect that you would be correct on both of the above counts. In linux, as I am sure you have noticed naming tends to be pretty strait forward. Most likley, the names of those files correspond to individual rpms..
I tried manually installing the rpms grabbed from the install CDs based on the names from the add/remove GUI but am getting dependency errors:
warning: httpd-2.0.47-10.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
libodbc.so.1 is needed by php-odbc-4.3.3-6
libodbcpsql.so.2 is needed by php-odbc-4.3.3-6
libpq.so.3 is needed by php-pgsql-4.3.3-6
I did eventually find the rpms which fix these dependency issues on the CD. I guess the lesson is there are some rpms installed which are not shown when you use the GUI package installer.
I need the installation done on multiple systems and it has to be the same install on each one so I have to rule out yum and apt as I can't have some systems with newer packages than others. Is there any way to get the rpm to automatically install the other needed packages?
i dont think it is possible to do that with rpm command.
we try to install some packet and rpm give the depency error generally. sometimes some packets have module depencies to each other. so we must install them by one command, like this:
rpm -Uvh packet1.rpm packet2.rpm packetX.rpm
u told that u have multiple systems. if those are same systems, u may want to update all systems with rpm command:
#rpm -Fvh /path/to/update-rpms/*.rpm
so it will upgrade installed packets.
F means upgrade that packet if it is installed on system.
U means if packet installed on system upgrade it. if not, install it.
If you need to totally control the packages on the system then probably the best way to do it is to disable the default yum repositories and attach them to your own yum repository.
yum can handle dependencies sensibly but the rpm utility fundamentally can't...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.