LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-01-2009, 04:26 AM   #1
threatingbehaviour
Member
 
Registered: May 2009
Location: mt vernon ohio
Distribution: opensuse 11.3
Posts: 129

Rep: Reputation: 15
installing 7zip


Hey guys I'm trying to install 7zip and I got the source file so I extract and run make ok everything seem ok then I run make install and I get this

./install.sh /usr/local/bin /usr/local/lib/p7zip /usr/local/man /usr/local/share/doc/p7zip
- installing /usr/local/bin/7za
- installing /usr/local/lib/p7zip/7zCon.sfx
- installing /usr/local/man/man1/7z.1
- installing /usr/local/man/man1/7za.1
- installing /usr/local/man/man1/7zr.1
- installing /usr/local/share/doc/p7zip/README
- installing /usr/local/share/doc/p7zip/ChangeLog
- installing HTML help in /usr/local/share/doc/p7zip/DOCS
ok but nothing seemed to install...help P.S I know that I can get 7zip in the yast repo's...but I want to learn so I want to do it myself
 
Old 06-01-2009, 04:44 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
It is installed in /usr/local/bin. If that directory is not in your PATH you should add it, so you can use 7za from everywhere.
Or else you should use the whole path to the command, like this:
Code:
/usr/local/bin/7za
 
Old 06-01-2009, 03:50 PM   #3
threatingbehaviour
Member
 
Registered: May 2009
Location: mt vernon ohio
Distribution: opensuse 11.3
Posts: 129

Original Poster
Rep: Reputation: 15
I have done this and this is all I get....


7-Zip (A) 4.65 Copyright (c) 1999-2009 Igor Pavlov 2009-02-03
p7zip Version 4.65 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,1 CPU)

Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...]
[<@listfiles...>]

<Commands>
a: Add files to archive
b: Benchmark
d: Delete files from archive
e: Extract files from archive (without using directory names)
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths
<Switches>
-ai[r[-|0]]{@listfile|!wildcard}: Include archives
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
-bd: Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-m{Parameters}: set compression Method (see the manual)
-l: don't store symlinks; store the files/directories they point to
CAUTION : the scanning stage can never end because of symlinks like '..'
(ex: ln -s .. ldir)
-o{Directory}: set Output directory
-p{Password}: set Password
-r[-|0]: Recurse subdirectories
(CAUTION: this flag does not do what you think, avoid using it)
-sfx[{name}]: Create SFX archive
-si[{name}]: read data from stdin
-slt: show technical information for l (List) command
-so: write data to stdout (eg: 7z a dummy -tgzip -so Doc.txt > archive.gz)
-ssc[-]: set sensitive case mode
-t{Type}: Set type of archive
-v{Size}[b|k|m|g]: Create volumes
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-w[path]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries

I see it gives me a list of commands to use with is but for example I type /usr/local/bin x and get "error incorrect command line"
 
Old 06-01-2009, 04:01 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Quote:
I see it gives me a list of commands to use with is but for example I type /usr/local/bin x and get "error incorrect command line"
You should use:
Code:
/usr/local/bin/7za x filename.7z
 
Old 06-01-2009, 04:03 PM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
The commands are 7za commands, not shell commands. The syntax is
Code:
7za <command> [<switches>...] <archive_name> [<file_names>...] [<@listfiles...>]
when you see something like this, take in mind that in most cases the order is important, the parts in square brackets are optional and the parts in <...> are to be assigned with actual values. For example, if you want to extract a 7zip file you can simply give the x command and the archive name:
Code:
/usr/local/bin/7za x archive.7z
 
Old 06-01-2009, 04:27 PM   #6
threatingbehaviour
Member
 
Registered: May 2009
Location: mt vernon ohio
Distribution: opensuse 11.3
Posts: 129

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
You should use:
Code:
/usr/local/bin/7za x filename.7z
so in other words I should use the command /usr/local/bin/7za x 7za.7z?
because I have done this get... 7-Zip (A) 4.65 Copyright (c) 1999-2009 Igor Pavlov 2009-02-03
p7zip Version 4.65 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,1 CPU)


Error:
there is no such archive
 
Old 06-01-2009, 04:36 PM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Code:
Error: there is no such archive
The error message is quite clear. Be sure you have the archive in the current directory or eventually use the full path:
Code:
/usr/local/bin/7za x /path/to/archive.7z
 
Old 06-01-2009, 05:08 PM   #8
threatingbehaviour
Member
 
Registered: May 2009
Location: mt vernon ohio
Distribution: opensuse 11.3
Posts: 129

Original Poster
Rep: Reputation: 15
ah ok thanks but I'm wondering...why doesn't make then sudo make install work why did I have to do all this extra stuff?
 
Old 06-01-2009, 05:16 PM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Extra stuff? You have installed a software and now you're trying to use it. What is the extra stuff? If you put /usr/local/bin in your PATH (maybe it is already there) you don't have to type the full path of the 7za command. The rest is a common usage of command line programs.
 
Old 06-01-2009, 05:31 PM   #10
threatingbehaviour
Member
 
Registered: May 2009
Location: mt vernon ohio
Distribution: opensuse 11.3
Posts: 129

Original Poster
Rep: Reputation: 15
well what I mean is that I extract then run make sudo make install then open the k menu an start the program that way but my guess is that there's not graphical interface for p7zip like there is for the windows one

Last edited by threatingbehaviour; 06-01-2009 at 05:35 PM.
 
Old 06-01-2009, 05:42 PM   #11
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
In OpenSuse if you've enabled the Packman repository, you can install p7zip (the binary package that provides the 7za command) and Q7Z. This is a little GUI that will be available from the K-menu under Applications --> Utilities --> Archiving.
 
Old 06-01-2009, 08:38 PM   #12
threatingbehaviour
Member
 
Registered: May 2009
Location: mt vernon ohio
Distribution: opensuse 11.3
Posts: 129

Original Poster
Rep: Reputation: 15
ah cool didn't know that thanks for the info
 
Old 06-01-2009, 11:08 PM   #13
vien
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
Thanks for share! but have other better zip tool?
 
Old 06-02-2009, 02:02 AM   #14
threatingbehaviour
Member
 
Registered: May 2009
Location: mt vernon ohio
Distribution: opensuse 11.3
Posts: 129

Original Poster
Rep: Reputation: 15
well what would you be using it for 7zip can pretty much do all you day to day zipping needs
 
  


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
7zip v/s normal zip vibinlakshman Linux - Newbie 8 02-21-2009 06:35 PM
Help with 7zip sudarshan22 Linux - Newbie 2 12-26-2007 11:29 AM
What is 7zip iso browser Linux - Newbie 5 04-07-2006 05:39 PM
7zip in linux ? sunpascal Linux - Newbie 9 02-07-2006 04:25 AM
embbeding 7zip in konqueror patolfo Linux - Software 2 01-15-2006 12:55 PM

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

All times are GMT -5. The time now is 10:45 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
Open Source Consulting | Domain Registration