Originally Posted by peanutbutter
Because I want to know both ways, thanks I guess
To install something with dpkg, you need to download the package file.
One way to download the package file is using apt-get download
; the file will have a .deb extension.
The disadvantage of dpkg is that it doesn't resolve dependencies - if a prerequisite package is missing, it will just give up instead of installing the missing package.