I've installed the golang-1.8 package from this ppa and I can see that it's installed some stuff under /usr/lib, namely:

/usr/lib$ ls -lha go-1.8/
total 48K
drwxr-xr-x   4 root root 4,0K Abr 24 01:39 .
drwxr-xr-x 190 root root  32K Abr 24 01:39 ..
drwxr-xr-x   2 root root 4,0K Abr 24 01:39 bin
lrwxrwxrwx   1 root root   35 Abr 10 01:59 doc -> ../../share/doc/golang-1.8-doc/html
lrwxrwxrwx   1 root root   45 Abr 10 01:59 favicon.ico.gz -> ../../share/doc/golang-1.8-doc/favicon.ico.gz
drwxr-xr-x   6 root root 4,0K Abr 10 01:59 pkg
lrwxrwxrwx   1 root root   22 Abr 10 01:59 src -> ../../share/go-1.8/src
lrwxrwxrwx   1 root root   23 Abr 10 01:59 test -> ../../share/go-1.8/test
-rw-r--r--   1 root root    7 Abr 10 01:49 VERSION

(these files are even listed in the PPA page)

However, running dpkg -L golang-1.8 (even using sudo) returns only stuff under /usr/share:

/usr/lib$ dpkg -L golang-1.8

Has this got something to do with the fact that, while the package name is golang-1.8, it's installed stuff under /usr/lib/go-1.8? Or because this was downloaded from a PPA?

P.S.: I'm running ubuntu 16.04 LTS


Files created by package-specific installation-scripts are not listed.

From man dpkg:

dpkg-query actions
              See  dpkg-query(1)  for  more  information  about  the following

              -l, --list package-name-pattern...
                  List packages matching given pattern.
              -s, --status package-name...
                  Report status of specified package.
              -L, --listfiles package-name...

From man dpkg-query:

-L, --listfiles package-name...
              List files installed to your system from package-name. When mul‐
              tiple package-name are listed, the requested lists of files  are
              separated  by an empty line, with the same order as specified on
              the argument list. However, note that files created by package-
              specific installation-scripts are not listed.
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.