Install 7-Zip for Linux as fake p7zip
Use these commands to install 7-Zip and fake p7zip to /usr/local
:
chmod +x install.sh
sudo ./install.sh
If you want to install to an alternative location, you can edit install.sh
by yourself.
If you are using an environment that 7zz
does not work, but 7zzs
works (e.g. Alpine Linux), you can symlink 7zz
to 7zzs
by this command:
sudo ln -sf 7zzs /usr/local/bin/7zz
7zz
and 7zzs
are from https://7-zip.org/download.html. Their version is 23.01 and their architecture is x86-64 here. You can replace them with a newer version or an alternative architecture.
p7zip.sh
is from https://salsa.debian.org/debian/7zip/-/blob/master/debian/scripts/p7zip.sh?ref_type=heads.