LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 12-08-2014, 05:02 PM   #1
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,467

Rep: Reputation: 85
having difficulty unzipping a zip file


I'm using Xubuntu 14.04 LTS

I put this in the terminal:

sudo apt-get install unzip

Then I made sure my zip file (pycrypto-2.1.0.win32-py2.7.zip) was in the Desktop.

Then from the desktop folder in the terminal I entered:

unzip pycrypto-2.1.0.win32-py2.7.zip

The reply was:

Archive: pycrypto-2.1.0.win32-py2.7.zip
replace pycrypto-2.1.0.win32-py2.7.exe? [y]es, [n]o, [A]ll, [N]one, [r]ename:

I've Googled a lot on this. One guy said once you install the

sudo apt-get install unzip

you can just double click on the file on the desktop. When I do that it just shows the .exe file in the archive manager. But when I leave the archive manager, the Desktop just shows the zip file.

So is the file unzipped?

What I did was drag the .exe file (after the double left clicking and getting the archive manager) onto the Desktop. Does that mean it's unzipped?

I (perhaps the sudo apt-get install unzip had already been there) was able to open the zip file with the archive manager before.

And unzipping and extracting are the same thing, right? If not, what the difference?

I was just exploring some more and when I right click on the pycrypto-2.1.0.win32-py2.7.zip file on the Desktop and choose "Extract here" it shoots the pycrypto-2.1.0.win32-py2.7.exe file onto the Desktop. Is this unzipping it? (Could it be this simple?)

And I am still in the terminal with:

Archive: pycrypto-2.1.0.win32-py2.7.zip
replace pycrypto-2.1.0.win32-py2.7.exe? [y]es, [n]o, [A]ll, [N]one, [r]ename:

I'm assuming I enter:

n

and hit enter. (Because I don't want to replace it.)
Would this be the thing to do?

Thanks very much.
 
Old 12-08-2014, 05:10 PM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Quote:
Originally Posted by Gregg Bell View Post
when I right click on the pycrypto-2.1.0.win32-py2.7.zip file on the Desktop and choose "Extract here" it shoots the pycrypto-2.1.0.win32-py2.7.exe file onto the Desktop. Is this unzipping it? (Could it be this simple?)
Yes it is

The message from the first attempt to unzip from the command line suggests that the (unzipped) package was already present in the directory from which you were operating.

I wouldn't think replacing it (or not) would make any difference -- they are both the same file.
 
1 members found this post helpful.
Old 12-08-2014, 05:26 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
A zip file is just an archive that contains other files/directories. To "unzip" the file, means to extract the files/directories contained within so they are normal, readable files on your filesystem.

You did this when you dragged the exe from the file manager to the desktop.

You did this when you right clicked the file and told it "extract here".

You attempted to do this when you typed "unzip file.zip" in the command line, but since you had already extracted it twice before, it came back with a message telling you the exe contained within the zip file had already been extracted, and asked you if you wanted to replace it. Yes/No wouldn't have made any difference, since it's the same file you had already extracted twice before.
 
1 members found this post helpful.
Old 12-08-2014, 07:03 PM   #4
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,467

Original Poster
Rep: Reputation: 85
Thanks Head, Suicidal. Phew. I made a lot of work out of something really simple. Appreciate your help.
 
Old 12-08-2014, 07:55 PM   #5
jross
Member
 
Registered: Apr 2014
Distribution: Xubuntu 14.04
Posts: 164

Rep: Reputation: Disabled
Quote:
I (perhaps the sudo apt-get install unzip had already been there) was able to open the zip file with the archive manager before.
I have Xubuntu 14.04 and yes, you already had that (there was no need to install again).
 
1 members found this post helpful.
Old 12-08-2014, 08:01 PM   #6
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,467

Original Poster
Rep: Reputation: 85
Thanks jross
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Getting error while Unzipping a UNIX ZIP file sampige_sbr Linux - Software 4 02-21-2011 03:47 AM
Unzipping downloaded .zip file to root folder. r00ster Linux - Newbie 11 09-23-2009 07:17 AM
Unzipping .zip files in linux dr_zayus69 Linux - Software 5 09-27-2004 07:47 PM
Unzipping a .zip file sduffy89 Linux - Software 3 08-25-2004 09:55 AM
unzipping .zip files...how?? Robert0380 Linux - General 2 04-11-2002 05:54 AM


All times are GMT -5. The time now is 01:07 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration