Solved

Linux and .7z

Posted on 2014-11-19
5
188 Views
Last Modified: 2014-11-19
If I have a zip file named abc.7z, will the following command unzip it correctly within Linux

unzip abc.7z

Open in new window


Thanks
0
Comment
Question by:Anthony Lucia
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:brutuz
ID: 40452788
no it wont...
try to install 7zip software www.7-zip.org
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 40452822
Depending on your distro run as root or prefixed with "sudo":

yum install p7zip

or

apt-get install p7zip

Then uncompress your file with:

7za e abc.7z
0
 

Author Comment

by:Anthony Lucia
ID: 40452849
I tried the following

[root@x240perf2 /]# yum install p7zip
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security,
              : subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
No package p7zip available.
Error: Nothing to do
[root@x240perf2 /]#
[root@x240perf2 /]#
[root@x240perf2 /]# apt-get install p7zip
-bash: apt-get: command not found
[root@x240perf2 /]#
[root@x240perf2 /]#

Open in new window


However neither worked

Is there a different way to invoke the yum install for the 7 zip ?

Thanks
0
 

Author Comment

by:Anthony Lucia
ID: 40452862
I am using Red Hat 6.x

How can I download the package and use rpm ?
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 40452870
You can download it here:

ftp://ftp.pbone.net/mirror/dag.wieers.com/redhat/el6/en/x86_64/dag/RPMS/p7zip-9.20.1-1.el6.rf.x86_64.rpm

Then run

rpm -ivh p7zip-9.20.1-1.el6.rf.x86_64.rpm

from the directory where you downloaded the package to.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now