I want to use gzip -k from now on, but it is only available with newer gzip versions. How can I upgrade it on CentOS 6?
Asked
Active
Viewed 3,368 times
0
-
1Downvoted why? Is upgrading gzip not part of a server admin's duties? – Buttle Butkus Oct 09 '15 at 19:40
4 Answers
2
CentOS geek does not advise upgrade: https://www.centos.org/forums/viewtopic.php?p=260691#p260691

16851556
- 436
- 2
- 7
- 19
-
Wow, that's a very recent post. Thank you for linking it here. I see that the forum moderator gives the reason that there are too many system dependencies on gzip and cites the errors that would occur with trying to remove gzip. I'm no expert, but I don't completely trust that answer either. Wouldn't a newer version of gzip usually be backwards compatible with slightly older versions? Upgrading is totally different than removing. – Buttle Butkus Mar 17 '17 at 11:09
-
Those arrogant people! Clinging to a 5 year old gzip release! Stupid... – rustyx Oct 11 '18 at 21:13
1
I think two options. The first is to search if this version (or newer) is available in alternatives repositories. Other option is download and compile the source code.
Sorry for my English level.

Luis
- 119
- 3
-
Your English level is quite satisfactory. I prefer using the "yum" command on CentOS whenever possible, and avoiding doing any compiling. – Buttle Butkus Oct 09 '15 at 02:11
-
Thanks! Another posible option is download the rpm file (http://rpmfind.net/linux/rpm2html/search.php?query=gzip) for fedora and try to install it... but probably you have a lot of broken dependencies. Probably the best solution was be proposed by Ian (download a rpms file and rebuild it) – Luis Oct 09 '15 at 11:11
1
The best way would be to download a Fedora srpm and rebuild it on CentOS 6. Find a local Fedora 22 src mirror at https://admin.fedoraproject.org/mirrormanager/mirrors/Fedora/22/source, navigate to /updates/22/SRPMS/g/ and download gzip-1.6-8.fc22.src.rpm
You can rebuild that on CentOS 6 with:
rpmbuild --rebuild gzip-1.6-8.fc22.src.rpm

Ian
- 376
- 1
- 6
0
You can work around its absence with:
gzip -c file > file.gz
gzip -dc file.gz > file

Michael Hampton
- 244,070
- 43
- 506
- 972