linux 源碼安裝 zip/unzip

linux 源碼安裝 zip/unzip

場景說明

  1. Linux服務器,沒有root權限
  2. 需要使用zip/unzip,但遺憾的是服務器沒有安裝

解決辦法

自己用源碼編譯

步驟

  1. 下載zip/unzip的源碼包 -> 工具主頁 Info-ZIP
    實際上主頁的下載地址過期了 -> 真下載主頁 sourceforge
  2. tar解壓
  3. 到解壓好的文件夾裏,把./unix/Makefile拷到根目錄.下,用make generic安裝即可。

過程

  1. 下載unzip60.tar.gz
wget http://downloads.sourceforge.net/infozip/unzip60.tar.gz

或者

wget https://nchc.dl.sourceforge.net/project/infozip/UnZip 6.x %28latest%29/UnZip 6.0/unzip60.tar.gz
  1. 解壓
tar xzvf unzip60.tar.gz
  1. 安裝
cp ./unix/Makefile .
make clean
make generic
  1. 驗證是否安裝成功
zip
unzip
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章