Powered by Blogger.

Monday, January 21, 2013

Diskripsi singkat tentang dpkg (debian package)


"dpkg adalah perangkat lunak dasar pada sistem manajemen paket Debian. Tool dpkg digunakan untuk memasang, menghapus, dan memberikan informasi tentang paket yang berupa berkas .deb (debian package)." 

Basics | Dasar

Package Installation & Removal

sudo dpkg –i
Installs the given .deb file.
sudo dpkg -i *
Installs all the .deb files present in the current directory being accessed.
sudo dpkg –r
Removes the given package from the system, but leaves files behind.
sudo dpkg –P
Removes package and configuration files of the given package. (purge)
NOTE: and should be replaced by actual file & package names.

Simple Example | Contoh Sederhana

Lets suppose you downloaded Ubuntu Tweak and you are trying out dpkg. All you need to do is to locate the downloaded file, reach the directory throught terminal and hit the install command.
wget http://launchpad.net/ubuntu-tweak/0.6.x/0.6.1/+download/ubuntu-tweak_0.6.1-1~oneiric1_all.deb /home/Downloads
cd Downloads
sudo dpkg -i ubuntu-tweak_0.6.1-1~oneiric1_all.deb

File Extraction | Mengekstark File

sudo dpkg -x
Extracts the files inside  the .deb file to a destination directory. Note that this will reset permissions on the target directory.

Package Checks | Mengecek Paket

dpkg –l
Lists installed packages. This can also be used to take options for more specific info.
dpkg -L
Lists all the files which have been installed from package (package must have been previously installed).
dpkg -c < filename.deb >
Lists files which are installed by the .deb file given (.deb file must be path/filename).
dpkg –I < filename.deb >
Lists information about the .deb given file.
dpkg –p
Lists information about the package.
dkpg –S
Lists the packages where the given file name is found.
dpkg –s
Lists the status of the given package.
NOTE : & should be replaced by actual filenames and package names as done in the example.



Achmad Fatkur Rachman's Blog

Mungkin kamu tertarik, Baca juga yang ini!!


Loading...

0 comments:

Post a Comment

 

Achmad Fatkur Rachman's Fb Page

Followers

  PageRank Checker