Mengubah .tar.gz Menjadi .deb Dengan checkinstall

Assalamualaikum,
Pasti banyak yang pengen merubah .tar.gz menjadi .deb ya? :D. 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

root@batik# apt-get install checkinstall

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

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

Setelah didownload mari kita extract filenya

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

Lalu masuk ke folder traceroute-2.0.18

root@batik# cd traceroute-2.0.18

Kita make dulu

root@batik# make

Setelah itu baru jalanin checkinstallnya. Enter-enter terus saja jika ada dialog/pertanyaan.

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

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

3 thoughts on “Mengubah .tar.gz Menjadi .deb Dengan checkinstall”

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.