After just seeing all the zip program posts, how can I use pigz everywhere instead of gzip and the like
pacaur -Qs zip
tells me I have the following programs installed:
-
bzip2
-
gzip
-
p7zip
-
unzip
-
zip
I want to replace all of them with pigz, since it's a lot faster. How do I do that? I've been thinking about putting aliases into bashrc, but is that gonna work? I do not compress a lot, but I uncompress a lot of files, can that even be done with pigz? Is the command syntax the same?
I'm looking to do as much as possible with pigz instead of the other programs, what do I do?
In case the whole think with bashrc works, does it automatically use pigz everywhere? (Even if I still have gzip and the like in my /etc/makepkg.conf for example?)
Edited 9 Jul 2015. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 3 · 100% up
- Kind
- Text
- ID
- 3cplmc
4 comments
Usage of pigz:
man pigz. Better than anyone telling you options.Replacing: An alias works for all of YOUR shells. If you alias all those commands, whenever you enter them, they get replaced. The system however will still use the other existing programs.
Also, you should never even try to replace all instances of the other archiving programs with any other, the syntax is completely different. For example, if I was to replace all instances of any archiver in my system with 7z, it would not work. 7z extracts with the "x" flag. None of the other programs do this though.
So basically this:
As long as I manually zip or unzip a program in a terminal it's gonna work, otherwise not?
edit: I'm obvs. retarded
No, doing it manually is the only thing that will work. Then you can see errors and react to them. Anything where the system does that automatically will most likely fail.