How to locate Synaptic Package Manager installed package s

Asked by Edmond Condillac

Cannot find some packages installed through Synaptic Package Manager. I installed Examples for the Python language (v2.7) but cannot find it even after searching through the File System. I can locate variou python folders in user/lib, but cannot see anything connected to Examples for the Python language (v2.7).
Your kind help would be most appreciated.
Thank sgain

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

The package python2.7-examples installs python example files in /usr/share/doc/python2.7/examples/
Do you have that package installed? (It is not installed by default, you have to add it manually with apt-get or synaptic or software-center.)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

run:

sudo updatedb

You can then use the 'locate' command to find files

Revision history for this message
Edmond Condillac (econ22) said :
#3

There is a folder /usr/share/doc/python2.7-examples. The contents of this folder are:.

/usr/share/doc/python2.7-examples/README.Debian
/usr/share/doc/python2.7-examples/changelog.Debian.gz
/usr/share/doc/python2.7-examples/copyright

Some of the out put from running locate python2.7-examples is as follows:

/var/cache/apt/archives/python2.7-examples_2.7.4-2ubuntu3.2_all.deb
/var/lib/dpkg/info/python2.7-examples.list
/var/lib/dpkg/info/python2.7-examples.md5sums

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#4

The python example files are installed in
/usr/share/doc/python2.7/examples/
not in
/usr/share/doc/python2.7-examples/

You can list the files that are installed with that package with the command
dpkg -S python2.7-examples
or with the command
cat /var/lib/dpkg/info/python2.7-examples.list
or by visiting
http://packages.ubuntu.com/precise/all/python2.7-examples/filelist

Revision history for this message
Edmond Condillac (econ22) said :
#5

Thanks Manfred Hampl, that solved my question.