Dtrx - Mwepụta Archive nwere ọgụgụ isi (tar, zip, cpio, rpm, deb, rar) Ngwa maka Linux


Anyị niile nwere ike chere ọnọdụ ihu n'oge ụfọdụ ma ọ bụ nke ọzọ ka anyị na-eji Linux tar.gz, tar.bz2, tbz iwu. Ọtụtụ ụdị Archive, ọtụtụ iwu icheta… Ọfọn, ọ bụghị ọzọ, ekele dtrx ngwá ọrụ.

  1. 18 iwu iwu ka imepụta na wepụta ebe nchekwa na Linux
  2. Otu esi emepe, wepụta na mepụta faịlụ RAR na Linux

Kedu ihe bụ Dtrx?

Dtrx na-anọchi anya Mee mmịpụta ziri ezi, ọ bụ ebe mepere emepe yana ngwa ahịrị iwu dị mma maka * sistemụ nix na-eme ka ọrụ gị nke iwepụta ihe dị mfe.

Iwu dtrx bụ nnọchi nke tar -zxvf ma ọ bụ tar -xjf iwu na ọ na-enye otu iwu iji wepụ ebe nchekwa n'ụdị dị iche iche gụnyere tar, zip, rpm, deb, gem, 7z, cpio, rar na ọtụtụ ndị ọzọ. Ọ nwekwara ike iji decompress faịlụ abịakọrọ na bzip2, gzip wdg.

Site na ndabara, dtrx wepụta ọdịnaya gaa na akwụkwọ ndekọ aha raara onwe ya nye ma na-edozikwa okwu ikike (dị ka ikike jụrụ) nke onye ọrụ chere ihu mgbe ọ na-ewepụta ọdịnaya iji hụ na onye nwe ya nwere ike ịgụ na dee faịlụ ndị ahụ niile.

Njirimara Dtrx

  1. Na-ejikwa ọtụtụ ụdị ebe nchekwa: Ọ na-enye naanị otu iwu dị mfe iji wepụ tar, zip, rar, gz, bz2, xz, rpm, deb, gem, faịlụ zip na-ewepụta onwe ya na ọtụtụ ụdị faịlụ exe ndị ọzọ.
  2. >
  3. Na-edobe ihe niile ahaziri: Ọ ga-ewepụta akwụkwọ ndekọ aha n'ime akwụkwọ ndekọ aha raara onwe ya nye.
  4. Ikikere dị mma: Ọ hụkwara na onye ọrụ nwere ike ịgụ na dee faịlụ ndị ahụ mgbe ewepụtara ya, na-edebe ikike adịghị emebi emebi.
  5. Mwepụtaghachi: Ọ nwere ike ịchọta ebe nchekwa n'ime ebe nchekwa wee wepụtakwa ndị ahụ.

Otu esi etinye Dtrx na Linux

Ngwá ọrụ dtrx bụ na ndabara gụnyere na ebe nchekwa Ubuntu, ihe niile ị ga-eme bụ ihe dị mfe ime apt-nweta itinye na sistemụ gị.

$ sudo apt-get install dtrx

Na sistemu Red Hat, dtrx adịghị site na ebe nchekwa ndabara, ịkwesịrị ibudata edemede dtrx wee wụnye usoro mmemme ahụ n'obosara site na iji iwu dị n'okpuru dị ka onye ọrụ mgbọrọgwụ.

# wget http://brettcsmith.org/2007/dtrx/dtrx-7.1.tar.gz
# tar -xvf dtrx-7.1.tar.gz 
# cd dtrx-7.1
# python setup.py install --prefix=/usr/local
running install
running build
running build_scripts
creating build
creating build/scripts-2.6
copying and adjusting scripts/dtrx -> build/scripts-2.6
changing mode of build/scripts-2.6/dtrx from 644 to 755
running install_scripts
copying build/scripts-2.6/dtrx -> /usr/local/bin
changing mode of /usr/local/bin/dtrx to 755
running install_egg_info
Creating /usr/local/lib/python2.6/site-packages/
Writing /usr/local/lib/python2.6/site-packages/dtrx-7.1-py2.6.egg-info

Otu esi eji dtrx Command

Iwu dtrx dị ka otu mgbanaka na-achị ha niile n'ime Onye-nwe nke Mgbaaka. Kama icheta syntax maka ebe nchekwa ọ bụla, naanị ihe ị ga-echeta bụ iwu dtrx.

Dịka ọmụmaatụ, achọrọ m iwepụ faịlụ Archive a na-akpọ tecmint27-12-2013.gz, naanị m na-eme iwu dtrx na-ejighị ọkọlọtọ ọ bụla.

 dtrx tecmint27-12-2013.gz

Ndị ọzọ karịa ime ka mmịpụta ahụ dị mfe, ọ nwere ọtụtụ nhọrọ ndị ọzọ dị ka ịwepụ faịlụ ahụ na nchekwa na iwepụtaghachi ihe ndekọ niile ọzọ n'ime ebe nchekwa enyere.

Chee na ị nwere faịlụ dtrAll.zip, nke nwere dtr1.zip, dtr2.zip na dtr3.zip nke ọ bụla nwere dtr1,dtr2 na dtr3 n'otu n'otu. Kama iji aka bu ụzọ wepụ dtrAll zip wee wepụ nke ọ bụla n'ime dtr1, dtr2 na dtr3 ị nwere ike wepụ ya ozugbo na folda dị iche iche site na iji dtrx wee họrọ nhọrọ a, ọ na-ewepụ faịlụ zip niile ugboro ugboro.

 dtrx dtrAll.zip
dtrx: WARNING: extracting /root/dtrAll.zip to dtrAll.1
dtrAll.zip contains 3 other archive file(s), out of 3 file(s) total.
You can:
 * _A_lways extract included archives during this session
 * extract included archives this _O_nce
 * choose _N_ot to extract included archives this once
 * ne_V_er extract included archives during this session
 * _L_ist included archives
What do you want to do?  (a/o/N/v/l) a

Mgbe nke ahụ gasịrị, mmịpụta, enwere ike nyochaa ọdịnaya nke akwụkwọ ndekọ aha ewepụtara site na iji iwu ls.

 cd dtrAll
 ls 

dtr1  dtr1.zip  dtr2  dtr2.zip  dtr3  dtr3.zip

Ka anyị kwuo na ịchọrọ iwepụ ebe nchekwa nke mbụ ọ bụghị ebe nchekwa n'ime ya. Site n'ịhọrọ N, ọ na-ewepụta naanị ebe nchekwa enyere na ọ bụghị ebe nchekwa ndị ọzọ dị n'ime ya.

 dtrx dtrAll.zip
dtrx: WARNING: extracting /root/dtrAll.zip to dtrAll.1
dtrAll.zip contains 3 other archive file(s), out of 3 file(s) total.
You can:
 * _A_lways extract included archives during this session
 * extract included archives this _O_nce
 * choose _N_ot to extract included archives this once
 * ne_V_er extract included archives during this session
 * _L_ist included archives
What do you want to do?  (a/o/N/v/l) N

Enwere ike nyochaa ọdịnaya nke akwụkwọ ndekọ aha ewepụtara site na iji iwu ls dị ka egosiri.

 cd dtrAll
 ls

dtr1.zip dtr2.zip dtr3.zip

Iji wepụta oyi akwa nke ọ bụla n'ime ebe nchekwa n'otu n'otu n'otu n'otu, ya bụ, ọ bụrụ na ịchọrọ iwepụ oyi akwa nke abụọ mana ọ bụghị oyi akwa nke atọ, ịnwere ike iji nhọrọ o.

Chee na ị nwere faịlụ zip dtrNewAll.zip, nke nwere dtrAll.zip na dtrNew ka ọ dị n'ime ya. Ugbu a ọ bụrụ na ịchọrọ wepụ ọdịnaya nke dtrNewAll na dtrAll yana ọ bụghị nke dtr1.zip, dtr2.zip na dtr3.zip, ị nwere ike iji o na n nhọrọ dị ka egosiri n'okpuru.

# dtrx dtrNewAll.zip
dtrNewAll.zip contains 1 other archive file(s), out of 2 file(s) total.
You can:
 * _A_lways extract included archives during this session
 * extract included archives this _O_nce
 * choose _N_ot to extract included archives this once
 * ne_V_er extract included archives during this session
 * _L_ist included archives
What do you want to do?  (a/o/N/v/l) o
dtrAll.zip contains 3 other archive file(s), out of 3 file(s) total.
You can:
 * _A_lways extract included archives during this session
 * extract included archives this _O_nce
 * choose _N_ot to extract included archives this once
 * ne_V_er extract included archives during this session
 * _L_ist included archives
What do you want to do?  (a/o/N/v/l) n

Enwere ike nyochaa ọdịnaya nke akwụkwọ ndekọ aha ewepụtara site na iji iwu ls dị ka egosiri.

 cd dtrNewAll
 ls

dtrAll  dtrAll.zip  dtrNew
 cd dtrAll
 ls

dtr1.zip dtr2.zip dtr3.zip

Anyị na-ebu ụzọ họrọ nhọrọ o nke pụtara na a ga-ewepụta faịlụ niile dị n'ime dtrNewAll. Mgbe e mesịrị, anyị na-ahọrọ n nhọrọ maka dtrAll.zip nke pụtara na Archives n'ime ya dtr1.zip , dtr2.zip na dtr3.zip agaghị ewepụta.

Nhọrọ -m wepụ meta-data na .deb, .rpm na .gem Archive kama ọdịnaya ha nkịtị. Nke a bụ ọmụmaatụ nke iwu ahụ.

 dtrx -m openfire_3.8.2_all.deb 
 dtrx -m openfire-3.8.2-1.i386.rpm
 ls

conffiles  control  md5sums  postinst  postrm  prerm

Enwere ọtụtụ nhọrọ dtrx ọzọ ị ga-enyocha, naanị mee “dtrx –help” ka ịdepụta nhọrọ dị.

 dtrx  --help

Usage: dtrx [options] archive [archive2 ...]

Intelligent archive extractor

Options:
  --version             	show program's version number and exit
  -h, --help            	show this help message and exit
  -l, -t, --list, --table      	list contents of archives on standard output
  -m, --metadata        	extract metadata from a .deb/.gem
  -r, --recursive       	extract archives contained in the ones listed
  -n, --noninteractive  	don't ask how to handle special cases
  -o, --overwrite       	overwrite any existing target output
  -f, --flat, --no-directory    extract everything to the current directory
  -v, --verbose         	be verbose/print debugging information
  -q, --quiet           	suppress warning/error messages

Njikọ ntụaka

dtrx ibe

Echere m na ị ghaghị ịnwale dtrx, n'ihi na ọ bụ naanị ngwá ọrụ ahịrị iwu dị ike na-enye otu iwu iji mebie ụdị faịlụ ọ bụla. Nke ahụ bụ ya ugbu a, ma echefula ịhapụ ndetu gị na ngalaba nkọwa.