how do I extract a directory full of rpms, debs or tarballs?

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
User avatar
toomuchcomputertime
Posts: 171
Joined: Fri 18 Apr 2008, 17:58
Location: /usr/local/lib/X11/pixmaps/Cleveland\ OH\ USA.png

how do I extract a directory full of rpms, debs or tarballs?

#1 Post by toomuchcomputertime »

I downloaded a directory full of rpms and wanted to find a mass extraction script so I do not have to extract each one individualy.

Does anyone know of such a script?
I spent the last 45 minutes 'googling' to find a script I found on the forum first time last time I tried!

Thanks in advance.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#2 Post by disciple »

Code: Select all

for i in *.rpm; do unrpm $i; done

Code: Select all

for i in *.tar.gz; do tar -xzvf $i; done
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#3 Post by disciple »

You'll need to quote the "$i" if there are spaces in any names...
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Post Reply