[NBLUG/talk] rpm question

augie augie at schwer.us
Sun Jul 6 11:39:00 PDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Todd Cary wrote:
> There is a long list of dependencies if I try to uninstall httpd!
> This brings up three questions: 1) How do I "pipe" the errors from
> "rpm -e httpd" to a file?  "rpm -e httpd
> >/home/todd/rpm_uninstall.txt"  does not give the errors.

this is sorta the right way, only this only grabs STDOUT (standard
output), when you want to grab STDERR (standard error):

$ rpm -e 2> httpd >/home/todd/rpm_uninstall.txt

see:

http://en.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html

for more info. also http://www.tldp.org/ 'The Linux Documentation
Project' is an amazing resource.

> 2) If I use "rpm -e --nodeps httpd" will all of those dependencies be
>  satisfied when I install apache-1.3.27?  Hate to take my http server
>  down forever :-) !!

actually it is rather the opposite. from the rpm man page:

- --nodeps
Don't do a dependency check before installing or upgrading a
package.

so everything will just get ripped out regardless of what else depends
on it. usually there is an order to these rpm dependencies, such that if
you want to uninstall package 'C' you will first need to uninstall
package 'B', but even before that package 'A'. however sometimes this
can go on forever.

> 3) How do I find out where Apache (httpd) is currently installed?  I
> think it may be at /home/httpd/www_default/.

you could use the above rpm switches, or either the 'slocate' command or
the 'find' command. have a look at their manuals for more info.

augie.


- --
irc.nblug.org #nblug
registered linux user #229905
gpg public key: http://www.schwer.us/schwer.asc
Key fingerprint = 9815 AE19 AFD1 1FE7 5DEE 2AC3 CB99 2784 27B0 C072

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/CG0Ty5knhCewwHIRAhH8AKC01tzoXdFhpjkXnWXZ5IrXryJoKACfWcgU
5szEDfQWaWFYcDzflTkxBfg=
=YnDW
-----END PGP SIGNATURE-----




More information about the talk mailing list