Install 7-Zip on Amazon Linux
Preface
Today I want to download a 7z file to my EC2 instance, but after the download is finished, I cannot find a command to unzip this 7z file. So I search the Internet and find a way to install 7-Zip on my Amazon Linux.
Notice: This is for 32-bit only.
Body
It seems like that Amazon doesn’t offer p7zip package in their repository, so I find a place to get the rpm packages. You can find them at http://packages.sw.be/p7zip/.
Follow these commands to install the latest version of 7-Zip:
wget -c http://packages.sw.be/p7zip/p7zip-9.20.1-1.el4.rf.i386.rpm wget -c http://packages.sw.be/p7zip/p7zip-plugins-9.20.1-1.el4.rf.i386.rpm rpm -ivh p7zip-9.20.1-1.el4.rf.i386.rpm rpm -ivh p7zip-plugins-9.20.1-1.el4.rf.i386.rpm
After the installation is finished, use following command to unzip the 7z file:
7z x filename
The argument x means unzip the file following its own directory structure.
One Comment