Skip to content

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.

3 points4 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
3 · 100% up
Kind
Text
ID
3cplmc

Author

18
posts
90
comments
1
media
View profile

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.

1 points

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

1 points

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.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.