On Fri, 09 Jul 1999, Jerome ALET wrote:
> On Fri, 9 Jul 1999, Steven wrote:
> > rm old_package_name ???
>
> just what I've done waiting for the answer.
>
> > I bet someone clever could write a script to copy all packages from
> > ../updates to Mandrake/RPMS and then delete the old ones -- unfortunately
> > that rules me out.
>
> this would be a very nice idea.
>
> thanks.
When I made my updated installation, I put all of the updated packages in their
own directory on my HD, did an ls command to list the files and copy/pasted
that list to a text editor (in X), then went down the list deleting the old
packages in the RPMS directory, using Tab to complete most of the filenames so
it didn't require much typing. (And you can do 'rm -i kernel*' and -say no to
removing kernelcfg-). You definitely want to be using the -i option with rm
(though Mandrake's default ~/.bashrc files alias rm to rm -i anyway) when you
do it.
There might be a better way, but that only took a minute or two..
(Now that I think about it, I guess you could easily do it all in one command
line by taking the copy/pasted list of updated RPMS, putting rm in front of it,
and replacing every instance of #mdk with ?mdk. That assumes you have the
updated RPMS set aside in a separate directory so you only delete the old ones.
:) Also it would only work with the RPMS that have the same filenames except
for the RPM release number (#mdk), which if I remember correctly should include
all of them except for the netscape packages (which are version 4.61 instead of
4.60).
-Tom