Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Berkemaslah

KMKLabs
August 09, 2016

 Berkemaslah

Ingin tahu cara membuat package DEB sendiri? Bagaimana dengan membuat repository APT sendiri sehingga bisa melakukan “apt-get install packageku”? Dalam tech talk kali ini akan dijelaskan tentang penggunaan system package manager (dalam hal ini dpkg dan apt) untuk melakukan distribusi software. Akan dibahas cara membuat package menggunakan tool fpm dan cara membuat repository menggunakan tool aptly.

KMKLabs

August 09, 2016
Tweet

More Decks by KMKLabs

Other Decks in Education

Transcript

  1. buat paketnya fpm -s dir # tipe sumber -t deb

    # tipe tujuan -p webapp-env.deb # nama output -n webapp-env # nama paket --prefix /home/webapp env # sumbernya
  2. # dpkg -i /tmp/share/webapp-env.deb Selecting previously unselected package webapp-env. (Reading

    database ... 11552 files and directories currently installed.) Preparing to unpack /tmp/share/webapp-env.deb ... Unpacking webapp-env (1.0) ... Setting up webapp-env (1.0) ...
  3. file siapa ini? # stat /home/webapp/env | grep Uid Access:

    (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
  4. file siapa ini? # stat /home/webapp/env | grep Uid Access:

    (0755/drwxr-xr-x) Uid: ( 2001/ UNKNOWN) Gid: ( 2001/ UNKNOWN) 2001 adalah UID dan GID asal
  5. buat user # addgroup --system --gid 2001 webapp # adduser

    --system --uid 2001 --gid 2001 --home /home/webapp webapp
  6. file siapa ini? # stat /home/webapp/env | grep Uid Access:

    (0755/drwxr-xr-x) Uid: ( 2001/ webapp) Gid: ( 2001/ webapp)
  7. # dpkg -i /tmp/share/webapp.deb dpkg: dependency problems prevent configuration of

    webapp: webapp depends on webapp-env; however: Package webapp-env is not installed.