LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing 7zip (https://www.linuxquestions.org/questions/linux-newbie-8/installing-7zip-729791/)

threatingbehaviour 06-01-2009 04:26 AM

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

bathory 06-01-2009 04:44 AM

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

threatingbehaviour 06-01-2009 03:50 PM

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"

bathory 06-01-2009 04:01 PM

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

colucix 06-01-2009 04:03 PM

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

threatingbehaviour 06-01-2009 04:27 PM

Quote:

Originally Posted by bathory (Post 3559502)
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

colucix 06-01-2009 04:36 PM

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

threatingbehaviour 06-01-2009 05:08 PM

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?

colucix 06-01-2009 05:16 PM

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.

threatingbehaviour 06-01-2009 05:31 PM

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

colucix 06-01-2009 05:42 PM

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.

threatingbehaviour 06-01-2009 08:38 PM

ah cool didn't know that thanks for the info

vien 06-01-2009 11:08 PM

Thanks for share! but have other better zip tool?

threatingbehaviour 06-02-2009 02:02 AM

well what would you be using it for 7zip can pretty much do all you day to day zipping needs


All times are GMT -5. The time now is 09:06 AM.