본문 바로가기

Linux

7zip - 압축 프로그램



7zip - 압축 프로그램

-------------------------------------------------------------------

http://www.7-zip.org/download.html

p7zip_4.61_src_all.tar.bz2 : (다운로드)

-------------------------------------------------------------------



1. 다운 및 압축 해제

 
[root@server3 Desktop]# pwd
/root/Desktop

[root@server3 Desktop]# ls
p7zip_4.61_src_all.tar.bz2

[root@server3 Desktop]# tar xvfj p7zip_4.61_x86_linux_bin.tar.bz2
p7zip_4.61/bin/
p7zip_4.61/bin/7za
p7zip_4.61/bin/7zCon.sfx
p7zip_4.61/bin/Codecs/
p7zip_4.61/bin/Codecs/Rar29.so
p7zip_4.61/bin/7z.so
p7zip_4.61/bin/7z
p7zip_4.61/bin/7zr
p7zip_4.61/bin/Client7z
p7zip_4.61/contrib/
p7zip_4.61/contrib/gzip-like_CLI_wrapper_for_7z/
p7zip_4.61/contrib/gzip-like_CLI_wrapper_for_7z/README
p7zip_4.61/contrib/gzip-like_CLI_wrapper_for_7z/check/
p7zip_4.61/contrib/gzip-like_CLI_wrapper_for_7z/check/files.tar
p7zip_4.61/contrib/gzip-like_CLI_wrapper_for_7z/check/check.sh
p7zip_4.61/contrib/gzip-like_CLI_wrapper_for_7z/p7zip
p7zip_4.61/contrib/gzip-like_CLI_wrapper_for_7z/man1/
p7zip_4.61/contrib/gzip-like_CLI_wrapper_for_7z/man1/p7zip.1
p7zip_4.61/contrib/qnx630sp3/
p7zip_4.61/contrib/qnx630sp3/qnx630sp3-shared
p7zip_4.61/contrib/qnx630sp3/qnx630sp3-static
p7zip_4.61/contrib/VirtualFileSystemForMidnightCommander/
p7zip_4.61/contrib/VirtualFileSystemForMidnightCommander/readme.u7z
p7zip_4.61/contrib/VirtualFileSystemForMidnightCommander/u7z
p7zip_4.61/contrib/VirtualFileSystemForMidnightCommander/readme
p7zip_4.61/contrib/VirtualFileSystemForMidnightCommander/ChangeLog
p7zip_4.61/man1/
p7zip_4.61/man1/7zr.1
p7zip_4.61/man1/7z.1
p7zip_4.61/man1/7za.1
p7zip_4.61/install.sh
p7zip_4.61/ChangeLog
p7zip_4.61/DOCS/
p7zip_4.61/DOCS/history.txt
p7zip_4.61/DOCS/MANUAL/
p7zip_4.61/DOCS/MANUAL/exit_codes.htm
p7zip_4.61/DOCS/MANUAL/commands/
p7zip_4.61/DOCS/MANUAL/commands/delete.htm
p7zip_4.61/DOCS/MANUAL/commands/update.htm
p7zip_4.61/DOCS/MANUAL/commands/extract.htm
p7zip_4.61/DOCS/MANUAL/commands/index.htm
p7zip_4.61/DOCS/MANUAL/commands/add.htm
p7zip_4.61/DOCS/MANUAL/commands/bench.htm
p7zip_4.61/DOCS/MANUAL/commands/extract_full.htm
p7zip_4.61/DOCS/MANUAL/commands/list.htm
p7zip_4.61/DOCS/MANUAL/commands/style.css
p7zip_4.61/DOCS/MANUAL/commands/test.htm
p7zip_4.61/DOCS/MANUAL/syntax.htm
p7zip_4.61/DOCS/MANUAL/index.htm
p7zip_4.61/DOCS/MANUAL/switches/
p7zip_4.61/DOCS/MANUAL/switches/include.htm
p7zip_4.61/DOCS/MANUAL/switches/ar_no.htm
p7zip_4.61/DOCS/MANUAL/switches/update.htm
p7zip_4.61/DOCS/MANUAL/switches/yes.htm
p7zip_4.61/DOCS/MANUAL/switches/ar_include.htm
p7zip_4.61/DOCS/MANUAL/switches/stop_switch.htm
p7zip_4.61/DOCS/MANUAL/switches/exclude.htm
p7zip_4.61/DOCS/MANUAL/switches/password.htm
p7zip_4.61/DOCS/MANUAL/switches/stdout.htm
p7zip_4.61/DOCS/MANUAL/switches/list_tech.htm
p7zip_4.61/DOCS/MANUAL/switches/volume.htm
p7zip_4.61/DOCS/MANUAL/switches/type.htm
p7zip_4.61/DOCS/MANUAL/switches/overwrite.htm
p7zip_4.61/DOCS/MANUAL/switches/ssc.htm
p7zip_4.61/DOCS/MANUAL/switches/stdin.htm
p7zip_4.61/DOCS/MANUAL/switches/index.htm
p7zip_4.61/DOCS/MANUAL/switches/working_dir.htm
p7zip_4.61/DOCS/MANUAL/switches/charset.htm
p7zip_4.61/DOCS/MANUAL/switches/output_dir.htm
p7zip_4.61/DOCS/MANUAL/switches/recurse.htm
p7zip_4.61/DOCS/MANUAL/switches/method.htm
p7zip_4.61/DOCS/MANUAL/switches/style.css
p7zip_4.61/DOCS/MANUAL/switches/ar_exclude.htm
p7zip_4.61/DOCS/MANUAL/switches/sfx.htm
p7zip_4.61/DOCS/MANUAL/style.css
p7zip_4.61/DOCS/7zFormat.txt
p7zip_4.61/DOCS/readme.txt
p7zip_4.61/DOCS/copying.txt
p7zip_4.61/DOCS/unRarLicense.txt
p7zip_4.61/DOCS/Methods.txt
p7zip_4.61/DOCS/7zC.txt
p7zip_4.61/DOCS/License.txt
p7zip_4.61/DOCS/lzma.txt
p7zip_4.61/README

[root@server3 Desktop]# ls
p7zip_4.61_src_all.tar.bz2 
p7zip_4.61

[root@server3 Desktop]# cp -a ./p7zip_4.61 /usr/local/src




2. 설치


[root@server3 Desktop]# cd /usr/local/src
[root@server3 src]# ls
p7zip_4.61

[root@server3 src]# cd p7zip_4.61/
[root@server3 p7zip_4.61]# ls
ChangeLog  DOCS  README  TODO  bin  contrib  install.sh  man1
[root@server3 p7zip_4.61]# vi README

[root@server3 p7zip_4.61]# ./install.sh
- installing /usr/local/bin/7za
- installing /usr/local/bin/7zr
- installing /usr/local/lib/p7zip/7zCon.sfx
- installing /usr/local/bin/7z
- 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
 



3. 실행

 
[root@server3 p7zip_4.61]# cd /usr/local/bin/
[root@server3 bin]# ls
7z  7za  7zr

[root@server3 bin]# 7z

7-Zip 4.61 beta  Copyright (c) 1999-2008 Igor Pavlov  2008-11-23
p7zip Version 4.61 (locale=ko_KR.UTF-8,Utf16=on,HugeFiles=on,2 CPUs)

Usage: 7z <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



'Linux' 카테고리의 다른 글