Solved

Linux and .7z

Posted on 2014-11-19
5
191 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

861 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

23 Experts available now in Live!

Get 1:1 Help Now