Skip to main content
  1. Posts/

Extract File .deb di Ubuntu

1 min
ubuntu linux ubuntu

Berikut merupakan panduan singkat cara mengekstrak file .deb di ubuntu.

Misalnya Anda ingin mengekstrak package libvirt-doc untuk melihat dokumentasi ataupun sample konfigurasi libvirt.

Step 1 - Download .deb package

apt-get --download-only -o dir::cache::archives=/root/ install libvirt-doc

Atau bisa juga memakai perintah apt

apt download libvirt-doc

Cek file setelah didownload.

# ls -lh /root/
total 1.8M
-rw-r--r-- 1 root root 1.8M Aug 11 05:19 libvirt-doc_8.0.0-1ubuntu7.7_all.deb

Extract .deb package

Untuk mengekstrak file .deb gunakan perintah.

dpkg-deb -xv <deb> <directory>
# dpkg-deb -xv libvirt-doc_8.0.0-1ubuntu7.7_all.deb .
drwxr-xr-x root/root         0 2023-08-04 15:42 ./
drwxr-xr-x root/root         0 2023-08-04 15:42 ./usr/
drwxr-xr-x root/root         0 2023-08-04 15:42 ./usr/share/
drwxr-xr-x root/root         0 2023-08-04 15:42 ./usr/share/doc/
drwxr-xr-x root/root         0 2023-08-04 15:42 ./usr/share/doc/libvirt-doc/
-rw-r--r-- root/root     61768 2023-08-04 15:42 ./usr/share/doc/libvirt-doc/NEWS.gz
-rw-r--r-- root/root      1667 2023-08-04 15:42 ./usr/share/doc/libvirt-doc/changelog.Debian.gz
-rw-r--r-- root/root      9644 2023-08-04 15:42 ./usr/share/doc/libvirt-doc/copyright
drwxr-xr-x root/root         0 2023-08-04 15:42 ./usr/share/doc/libvirt-doc/examples/

Untuk melihat isi package tanpa mengekstrak.

dpkg -c <deb>

Related

How to Switch Between CLI and GUI Ubuntu
1 min
ubuntu linux ubuntu
Meningkatkan Kinerja Disk dengan Bcache
3 mins
ubuntu ubuntu linux
Errors during Processing: grub-efi-amd64-signed and shim-signed
1 min
ubuntu ubuntu linux
Error 'Key is stored in legacy trusted.gpg keyring' di Ubuntu
2 mins
ubuntu linux ubuntu
Migrasi OS Ubuntu ke LVM
3 mins
ubuntu linux ubuntu lvm
Recover Root Password Ubuntu
1 min
ubuntu linux ubuntu