Mengubah .tar.gz Menjadi .deb Dengan checkinstall

From OnnoWiki
Jump to navigation Jump to search

Assalamualaikum, Pasti banyak yang pengen merubah .tar.gz menjadi .deb ya? icon biggrin Mengubah .tar.gz Menjadi .deb Dengan checkinstall . Artikel ini saya buat karena ada dialog di timeline kang @onnowpurbo sama kang @kompi417

   @onnowpurbo: wah saya juga belum pernah bikin hehe RT @kompi417: @onnowpurbo kang artikel ttg remastering atau conversi paket .tar.gz ke .deb sy bisa dap

Jawabannya, anda bisa menggunakan aplikasi checkinstall.

   checkinstall is a program that monitors an installation procedure (such
   as make install, install.sh ), and creates a standard package for your
   distribution (currently deb, rpm and tgz packages are supported) that
   you can install through your distribution’s package management system
   (dpkg, rpm or installpkg).

Pertama install dulu checkinstall 1

root@batik# apt-get install checkinstall

Lalu misal kita ingin merubah traceroute-2.0.18.tar.gz menjadi .deb. Download dulu 1

root@batik# wget http://downloads.sourceforge.net/traceroute/traceroute-2.0.18.tar.gz

Setelah didownload mari kita extract filenya 1

root@batik# tar -zxvf traceroute-2.0.18.tar.gz

Lalu masuk ke folder traceroute-2.0.18 1

root@batik# cd traceroute-2.0.18

Kita make dulu 1

root@batik# make

Setelah itu baru jalanin checkinstallnya. Enter-enter terus saja jika ada dialog/pertanyaan. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56

root@batik# checkinstall -D make install checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran

          This software is released under the GNU GPL.

The package documentation directory ./doc-pak does not exist. Should I create a default set of package docs? [y]: Preparing package documentation...OK Please write a description for the package. End your description with an empty line or EOF. >>

        • Debian package creation selected ***

This package will be built according to these values: 0 - Maintainer: [ root@batik ] 1 - Summary: [ Package created with checkinstall 1.6.1 ] 2 - Name: [ traceroute ] 3 - Version: [ 2.0.18 ] 4 - Release: [ 1 ] 5 - License: [ GPL ] 6 - Group: [ checkinstall ] 7 - Architecture: [ i386 ] 8 - Source location: [ traceroute-2.0.18 ] 9 - Alternate source location: [ ] 10 - Requires: [ ] 11 - Provides: [ traceroute ] Enter a number to change any of them or press ENTER to continue: Installing with make...Installing with install...

=================== Installation results =====================

cp traceroute /usr/local/bin cp -f traceroute.8 /usr/local/share/man/man8

================== Installation successful ====================

Copying documentation directory... ./ ./COPYING ./README ./CREDITS ./ChangeLog ./COPYING.LIB ./VERSION ./TODO grep: /var/tmp/tmp.0FMXu6QY5y/newfile: No such file or directory Copying files to the temporary directory...OK Stripping ELF binaries and libraries...OK Compressing man pages...OK Building file list...OK Building Debian package...OK Installing Debian package...OK Erasing temporary files...OK Writing backup package...OK Deleting temp dir...OK

Done. The new package has been installed and saved to
/root/traceroute-2.0.18/traceroute_2.0.18-1_i386.deb
You can remove it from your system anytime using:
     dpkg -r traceroute

Berhasil deh, kita cek dulu 1 2

root@batik# ls|grep .deb traceroute_2.0.18-1_i386.deb Postingan yang mirip