We will use Yum.
Because 7Zip is not automatically included in CentOS 5.5, we have to add the repository and then install it. Reference
Download the i386 rpm file onto the 64-bit Opteron server because
uname -i
reported i386. That was a surprise.
- Install DAG's GPG key
- Install the package
Then yum can be used, like this:
yum install p7zip
And then you can run
/usr/libexec/p7zip/7za
to make your .7z files.