[WBEL-users] How to uninstall an rpm package which has dependencies?
Rafael Baquero S.
rbaqueros@yahoo.com.mx
Tue, 9 Nov 2004 10:40:08 -0600
On Tuesday 09 November 2004 04:17, Jean Lee wrote:
> And using nodeps won't create any problem with netdump after
> reinstalling Openssh (or do I have to be careful with some shared
> libraries)?
>
Yes. You might run into trouble depending on where the various files are
installed by the rpm package. You basically have two choices here, build a
new rpm based on the existing openssh rpm or install from tarball. Either way
definitely try this out on a test box and remember to test thoroughly the
packages that are marked as dependant on openssh. Also you may want to reboot
your system to verify that everything is O.K.
The best place to start making your own package or installing from tarball is
probably the spec file in the srpm. This has all the info about how the
package is built and installed. Remember to list all the files in the
original package with rpm -qlp so you know where everything is installed. A
good starting place to get the info you need is http://www.rpm.org
Personally I prefer to use rpm packages whenever I can but I think one should
not be rpm-dependent, i.e. if the package you want is not available as an rpm
or is not packaged with the features you want/need then its time to roll up
your sleeves and do some traditional hacking, or at least some traditional
packaging :-).
Regards.
Rafael.
> Thank you
>
> Graham Purcocks wrote:
> > No nothing wrong. You can't uninstall openssh as the packages it
> > mentions depends on it. So you either force uninstall or remove the
> > dependant packages as well at the same time. I suspect you want the
> > first. Use --nodeps.
> >
> > Try reading 'man rpm' on the section on ERASEING packages. This may
> > give you more insight.
> >
> > Hope this helps
> >
> > Jean Lee wrote:
> >> Hello all,
> >>
> >> I think that what I want is not so hard but I really don't know how
> >> to do it.
> >>
> >> My problem is that I want to unintsall openssh-3.6.1p2 which is
> >> installed as an rpm package and then install openssh-3.9p1-chroot
> >> which is a tarball (it is a patched version of Openssh-3.9p1 with
> >> added chroot functionnality).
> >>
> >> Well, I tried first to uninstall openssh-3.6.1p2 with :
> >> rpm -e openssh
> >> and this command failed due to dependencies to other packages :
> >> openssh-server, openssh-client, netdump and a few others related to
> >> openssh...
> >>
> >> I'm sure that I am doing something wrong. Perhaps that I can firstly
> >> uninstall the packages related to openssh but the one with netdump is
> >> probably not recommended.. Moreover, I tried to uninstall
> >> openssh-server and it failed due to a dependency to netdump-server.
> >>
> >> What is the right way? Do I have really to uninstall every package
> >> which has a dependency before uninstalling openssh or is there
> >> another way which ensure that nothing will be broken?
> >>
> >> Thanks for any help,
> >>
> >> Jean
> >> _______________________________________________
> >> Whitebox-users mailing list
> >> Whitebox-users@beau.org
> >> http://beau.org/mailman/listinfo/whitebox-users
>
> _______________________________________________
> Whitebox-users mailing list
> Whitebox-users@beau.org
> http://beau.org/mailman/listinfo/whitebox-users