• # Avec ton terminal

    Posté par (site web personnel) . En réponse au message unzip, recherche une implémentation de référence. Évalué à 2. Dernière modification le 09 avril 2016 à 18:20.

    Tu peux récupérer les sources (et les compiler) depuis le confort de ton terminal:

     [joel@sd-xxx ~]$ dnf provides *unzip
     Last metadata expiration check: 0:01:23 ago on Sat Apr 9 17:59:20 2016.
     gzip-1.6-9.fc23.x86_64 : The GNU data compression program
     Repo : @System
     unzip-6.0-24.fc23.x86_64 : A utility for unpacking zip files
     Repo : updates
     gzip-1.6-9.fc23.x86_64 : The GNU data compression program
     Repo : fedora
     perl-Archive-Extract-zip-unzip-1:0.76-1.fc23.noarch : ZIP decompressor for perl-Archive-Extract via unzip
     Repo : fedora
     unzip-6.0-23.fc23.x86_64 : A utility for unpacking zip files
     Repo : fedora
     [joel@sd-xxx ~]$ dnf download --source unzip
     enabling fedora-source repository
     enabling updates-source repository
     Fedora 23 - Updates Source 17 MB/s | 2.3 MB 00:00 
     Fedora 23 - Source 7.9 MB/s | 5.9 MB 00:00 
     Last metadata expiration check: 0:00:04 ago on Sat Apr 9 18:01:19 2016.
     unzip-6.0-24.fc23.src.rpm 4.4 MB/s | 1.4 MB 00:00 
     [joel@sd-xxx ~]$ ls rpmbuild/SOURCES/
     unzip-6.0-attribs-overflow.patch unzip-6.0-exec-shield.patch unzip-6.0-overflow.patch
     unzip-6.0-bzip2-configure.patch unzip-6.0-fix-recmatch.patch unzip-6.0-symlink.patch
     unzip-6.0-caseinsensitive.patch unzip-6.0-format-secure.patch unzip60.tar.gz
     unzip-6.0-close.patch unzip-6.0-heap-overflow-infloop.patch unzip-6.0-valgrind.patch
     unzip-6.0-cve-2014-8139.patch unzip-6.0-manpage-fix.patch unzip-6.0-x-option.patch
     unzip-6.0-cve-2014-8140.patch unzip-6.0-nostrip.patch
     unzip-6.0-cve-2014-8141.patch unzip-6.0-overflow-long-fsize.patch
    

    Et pour compiler:

     [joel@sd-xxx ~]$ cd rpmbuild/SPECS/
     [joel@sd-xxx SPECS]$ sudo dnf builddep unzip
     enabling fedora-source repository
     enabling updates-source repository
     Fedora 23 - Updates Source 3.5 MB/s | 2.3 MB 00:00 
     Fedora 23 - Source 19 MB/s | 5.9 MB 00:00 
     [joel@sd-xxx SPECS]$ rpmbuild -bb unzip.spec 
     Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.yI5828
     + umask 022
     + cd /home/joel/rpmbuild/BUILD
     + cd /home/joel/rpmbuild/BUILD
     + rm -rf unzip60
     + /usr/bin/tar -xof -
     + /usr/bin/gzip -dc /home/joel/rpmbuild/SOURCES/unzip60.tar.gz
     + STATUS=0
     + '[' 0 -ne 0 ']'
     + cd unzip60
     (...)