LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Question on Add/Remove apps, rpm file equivalents? (https://www.linuxquestions.org/questions/fedora-35/question-on-add-remove-apps-rpm-file-equivalents-273822/)

Arodef 01-04-2005 03:59 PM

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.

Postal1 01-04-2005 09:07 PM

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

Postal1

Arodef 01-05-2005 04:22 PM

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.

Postal1 01-05-2005 08:37 PM

Ok, good, I am glad that you were able to fix your problem, post back here if you need any help..

Lots of Luck
~Postal1

maxut 01-07-2005 11:23 AM

why dont u use yum, if u have internet connection?
like this:
yum install httpd

so it will automaticly will find and ask u to install other packets that needed to be installed as depency.

good luck

Arodef 01-07-2005 01:53 PM

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?

maxut 01-08-2005 04:30 AM

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.

good luck.

hob 01-09-2005 12:56 PM

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


All times are GMT -5. The time now is 04:07 AM.