Dtrx - םכח ןויכרא ץוליח (tar, zip, cpio, rpm, deb, rar) סקוניל ילכ


.dtrx ילכל תודוה ,ךכמ רתוי אל ,ןכבו ... רוכזל תודוקפ הברה ךכ לכ ,ןויכרא יגוס הברה ךכ לכ .סקוניל לש tar.gz, tar.bz2, tbz תודוקפב שומיש ךות תרחא וא יהשלכ ןמז תדוקנב בצמ םע דדומתהל םייושע וני

    ?Dtrx הז המ

    Dtrx גציימ "Do The Extraction Right", תוכרעמ רובע דואמ ליעי הדוקפ תרוש םושייו חותפ דוק והז * nix ןויכרא ץוליחל ךתדובע תא תוטשפמש.

    .' וכו bzip2, gzip םע םיסוחד םיצבק סוחדל ידכ םג שמשל לוכי הז .םיבוטו םיבר דועו tar, zip, rpm, deb, gem, 7z, cpio, rar ללוכ םינוש םיטמרופ רפסמב םינויכרא ץוליחל תחא תחא הדוקפ תקפסמ איהו "tar

    .הלאה םיצבקה לכ תא בותכלו אורקל לכוי םילעבהש חיטבהל ידכ ןכות ץוליח תעב שמתשמה ינפב (החדנש רושיא ומכ) האשרה תויעב םג ןקתמו תידועיי הירפסל ןכות ץלחמ dtrx ,לדחמ תרירבכ

    Dtrx תונוכת

      סקונילב Dtrx ןיקתהל דציכ

      .ךלש תכרעמב ןיקתהל apt-get תושעל טושפ אוה תושעל ךילעש לכ ,וטנובוא לש םירגאמב לדחמ תרירבכ ללכנ dtrx ילכה

      $ sudo apt-get install dtrx

      .שרוש שמתשמכ תואבה תודוקפה תועצמאב תכרעמה לכב הלוכ תינכותה תא ןיקתהלו dtrx טפירקס דירוהל ךילע ,לדחמ תרירב ירגאמ תועצמאב ןימז וניא Red Hat, dtrx תוססובמ תוכרעמב

      # 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

      dtrx הדוקפב שמתשהל דציכ

      .dtrx תדוקפ אוה רוכזל ךילעש לכ ,ןויכרא לכ רובע ריבחת רוכזל ךרטצתש םוקמב .תועבטה רשב םלוכב טולשל תחאה תעבטה ומכ ךרעב איה dtrx הדוקפה

      .םהשלכ םילגדב שמתשהל ילבמ dtrx תדוקפ קר עצבמ ינא ,"tecmint27-12-2013.gz" םשב ןויכרא ץבוק ץלחל הצור ינא ,אמגודל

       dtrx tecmint27-12-2013.gz

      .ןותנ ןויכראב םינויכראה ראש לכ לש יביטרוקר ץוליחו הייקיתל ץבוקה ץוליח ומכ תורחא תויורשפא ללש ול שי ,ץוליחה תא טשפל דבלמ

      .יביסרוקר ןפואב zip -ה יצבק לכ תא ץלחמ אוה ,"a" תורשפאבו dtrx תועצמאב המאתהב תויקיתב תורישי ותוא ץלחל לכות ,dtr3 -ו dtr1, dtr2 -המ דחא לכ ץלחל זאו dtrAll לש zip -ה תא תינדי הליחת ץלחל ךרטצ

       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

      .ls הדוקפה תועצמאב הצלוחש הירפסה ןכות תא תמאל ןתינ ץוליחה רחאל

       cd dtrAll
       ls 
      
      dtr1  dtr1.zip  dtr2  dtr2.zip  dtr3  dtr3.zip

      .וכותב םירחא םינויכרא אלו ןותנה ןויכראה תא קר ץלחמ אוה ,N -ב הריחב ידי לע .וכותב םינויכרא אלו ןושארה ןויכראה תא ץלחל הצור התאש חיננ

       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

      .גצומש יפכ ls הדוקפה תועצמאב הצלוחש היירפסה ןכות תא תמאל ןתינ

       cd dtrAll
       ls
      
      dtr1.zip dtr2.zip dtr3.zip

      ."o" תורשפאב שמתשהל לכות ,תישילשה הבכשה תא אל ךא םינויכרא לש היינש הבכש ץלחל ךנוצרב םא ,רמולכ ,ופוגל הרקמ יפל ןויכרא ךותב ןויכרא תבכש לכ ץלחל ידכ

      .ןלהל גצומכ "n" -ו "o" תויורשפאב שמתשהל ךתורשפאב ,dtr3.zip -ו dtr1.zip, dtr2.zip לש אל ךא "dtrAll" -ו "dtrNewAll" לש ןכותה תא םג ץלחל ךנוצרב םא ,תעכ ."dtrNew" -ו "dtrAll.zip" ןכותה תא ליכמ

      # 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

      .גצומש יפכ ls הדוקפה תועצמאב הצלוחש היירפסה ןכות תא תמאל ןתינ

       cd dtrNewAll
       ls
      
      dtrAll  dtrAll.zip  dtrNew
       cd dtrAll
       ls
      
      dtr1.zip dtr2.zip dtr3.zip

      .וצלוחי אל dtr3.zip -ו dtr1.zip, dtr2.zip הכותב םינויכראה רמולכ ,dtrAll.zip רובע "n" היצפואב םירחוב ונא ךשמהב .וצלוחי dtrNewAll ךותב םינויכראה לכש התועמשמש "o" היצפואב םירחוב ונא תישאר

      .הדוקפל המגוד הנה .םהלש ליגרה ןכותה םוקמב ,gem. -ו deb, .rpm. םינויכראהמ םינותנ-אטמה תא תצלחמ "m-" תורשפאה

       dtrx -m openfire_3.8.2_all.deb 
       dtrx -m openfire-3.8.2-1.i386.rpm
       ls
      
      conffiles  control  md5sums  postinst  postrm  prerm

      .תונימזה תויורשפאה תא םושרל ידכ "dtrx –help" תא לעפה טושפ ,רוקחל dtrx תויורשפא רתוי הברה שי

       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

      הינפה ירושיק

      dtrx לש תיבה ףד

      .תורעהה עטקב ךתרעה תא ריאשהל חכשת לאו ,התע תעל הז והז .ןויכרא יצבק לש טמרופ לכ לש הסיחדל תחא הדוקפ ןתונש דיחיה קזחה הדוקפה תרוש ילכ הז יכ ,dtrx תוסנל בייח התאש בשוח ינא