Solved

Linux and .7z

Posted on 2014-11-19
5
200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Bash script - Exit out of choice loop 2 55
Why  my code (program) build with old compiler? 11 110
I NEED A "BARE" LINUX ... 9 90
expand ext4 on centos 6 5 54
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

749 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