You are not logged in.
DESCRIPTION:
extractor is a simple program written in Python that will help You with unpacking many types of archives
HOMEPAGE:
http://sirmacik.lin4all.org/pmwiki.php/ … /Extractor
DEPENDENCES:
Mainly it depends on Python and tar (I'm sure that You have these programs in Your system).
To extract other types of archives You have to install:
*.tar.bz2/*.bz2/*.tbz2 => bzip2
*.tar.gz/*.gz/*.tgz => gzip
*.zip/*.ZIP => unzip<http://www.info-zip.org/>
*.rar/*.RAR => unrar
*.Z => zlib
*.tar.lzma/*.lzma => lzma
*.tar.7z/*.7z => p7zip
All of them are totally optional.
INSTALLATION:
You have to download (here You'll find the newest version) extractor.py file and put it into Your PATH as 'extractor' with execute rights.
Example installation looks like that:
install -Dm 755 extractor.py /usr/bin/extractor
You have to execute command from root account (with su or sudo).
//EDIT: You could also install it from AUR
USING:
Simply, You have to run extractor with a name of Your archive as an argument.
Example:
extractor archive.tar.gz
Little FAQ
1) Why it could be useful for me?
- Hmm. I don't like the situations, when I have many types of archives on my hard drive and I have to remember a command to extract every of them. Maybe You don't like that situations too.
2) Why it's written in python, not bash?
- Simply, I don't like bash. It was (but it still is also a kind of terning of programming in python.
3) Why this program is using X function, not Y?
- Also simply. Because in the moment when I was writing extractor I haven't know about Y function or I was thought (and maybe I'm still thinking in that way) that this function will be better. I had started learning python (and programming) not very long time ago. So all suggestions are welcome.
Last edited by sirmacik (2009-03-14 21:59:25)
Offline
There are some features in atool in community that you should think about implementing:
- saving from tarbomb: atool temporarily extracts to Unpack-[pid], if there is only 1 entry in it then it is moved to the base dir, else everything is moved to a directory named after archive's filename
- option to list what is in the archive
- option to work on multiple archives at once
- force extracting to a directory named after the archive's filename(s)
- verbosity control (only saying whether it was successful, and password checks)
Well those are what I think are important.
Last edited by Procyon (2009-03-07 13:11:01)
Offline
Thanks for Your suggestions. I'll think about that.
Offline
Implemented in bash here
[git] | [AURpkgs] | [arch-games]
Offline
Similar to Daenyth's script http://aur.archlinux.org/packages.php?ID=21139
Offline
I know that my script/program is similar to many scripts in many languages. As I said in Little FAQ, this script was written for training. But I'm going to still develop extractor and extend it with new features.
Last edited by sirmacik (2009-03-14 22:01:14)
Offline