LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-14-2018, 03:48 PM   #1
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 20.04 lts
Posts: 598

Rep: Reputation: 43
.7z files - how to extract?


How to extract a .7z file?
 
Old 07-14-2018, 04:00 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,802

Rep: Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002
Quote:
Originally Posted by Michael Piziak View Post
How to extract a .7z file?
With the 7z utility. Probably in your online repos, and easily installed.
 
Old 07-14-2018, 04:56 PM   #3
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 20.04 lts
Posts: 598

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by TB0ne View Post
With the 7z utility. Probably in your online repos, and easily installed.

Couldn't find it in the Ubuntu Software center
 
Old 07-14-2018, 05:08 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
p7zip (a command line utility) should do the trick. It should be in the Ubuntu repos. p7zip-full handles even more types of archives.

Many GUI archive managers (Engrampa, File Roller etc.) will use this underlying application when handling 7-Zip archives.

Last edited by hydrurga; 07-14-2018 at 05:10 PM.
 
Old 07-14-2018, 05:12 PM   #5
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,763

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
A web search for
Quote:
ubuntu 7z
yields many links.
This one seems fairly detailed.
 
Old 07-14-2018, 05:15 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,814

Rep: Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960
As stated the package name is p7zip but the actual utility name is 7z and would expect it to be installed by default.
 
Old 07-15-2018, 12:56 AM   #7
WFV
Member
 
Registered: Apr 2012
Location: somehow, somewhere
Distribution: Arch
Posts: 197

Rep: Reputation: Disabled
did you try right click on file and "extract to"? your file manager may already have a built-in extractor, also this from Ubuntu assuming you've installed p7zip package (or perhaps Ubuntu comes with it pre-installed now)
 
Old 07-15-2018, 10:00 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
as above the p7zip should be installed by default

have you tried double clicking on the *.7z archive ?

as in the exact same as you would on a Microsoft Windows install !
 
Old 07-15-2018, 10:19 AM   #9
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,155

Rep: Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318
As John said, clicking on an archive file in your file manager will launch the archive manager and then you can drag the item out of the archive manager window and drop it into a folder in the file manager. If the archive manager complains that it can't handle .7z files, then you need to install p7zip. Once it's installed, the archive manager will use it: no need to use the command line. The unrar facility works in the same way.
 
Old 07-16-2018, 07:19 AM   #10
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,823

Rep: Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988
Code:
7z x Archive.7z
p7zip can do other archive types like rar.
 
Old 07-16-2018, 03:33 PM   #11
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 20.04 lts
Posts: 598

Original Poster
Rep: Reputation: 43
Thanks everyone
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extract all files on a directory and delete all files? moisespedro Slackware 9 01-21-2014 11:55 AM
Not able to extract files. gajananh999 Linux - Software 4 10-29-2012 09:45 AM
How do I extract files from .daa files under linux? izquierdista Linux - Software 8 04-09-2007 09:37 PM
extract files ust Linux - General 1 08-05-2005 01:16 AM
Extract >1 files using WinRAR mib Linux - Software 11 06-29-2004 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration