linux下lz4解壓縮的安裝包
一.Debian系列:Debian、Ubuntu等
1.1 kali下修改apt-get源:
vim /etc/apt/sources.list
debhttp://mirrors.ustc.edu.cn/kali sana main non-freecontrib
debhttp://mirrors.ustc.edu.cn/kali-security/ sana/updates main contribnon-free
deb-srchttp://mirrors.ustc.edu.cn/kali-security/ sana/updates main contribnon-free
1.2 Ubuntu下修改apt-get源:
vi /etc/apt/sources.list
:%s/us.archive/cn.archive/g #將其中的us.archive 全部替換為 cn.archive
2.安裝lz4:
apt-get update
apt-get install liblz4-tool
3.解lz4檔案:
lz4 -d 檔名
二.RedHat系列:Redhat、Centos、Fedora等
1.遇到: Error: Cannot retrieve metalink for repository: epel. Pleaseverify its path and try again
vi /etc/yum.repos.d/epel.repo
修改為: baseurl
#mirrorlist
2.修改yum源(好處利用國內資源下載更快):
cd/etc/yum.repos.d
mv CentOS-Base.repoCentOS-Base.repo.bk #備份
wget -O /etc/yum.repos.d/CentOS-Base.repohttp://mirrors.aliyun.com/repo/Centos-6.repo #下載阿里雲的yum
yum cleanall
yummakecache #使yum生效
3.第三方源EPEL:
rpm -qepel-release #檢查EPEL是否安裝
yum installepel-release #安裝EPEL
4.安裝lz4(其他包一樣):
yum install lz4
yum install lz4-devel
5.解lz4檔案:
lz4 -d 檔名