centos 7 tar 編譯安裝

  • vi /etc/profile -> export FORCE_UNSAFE_CONFIGURE=1 -> source /etc/profile
  • 下載安裝
wget http://ftp.gnu.org/gnu/tar/tar-latest.tar.gz
tar -zxvf tar-latest.tar.gz
cd tar-*
mkdir build
cd build
../configure --prefix=/usr/local/tar
make
make install
ln -s -f /usr/local/tar/bin/tar /usr/bin/
  • tar --version
tar (GNU tar) 1.31
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容