Tag Info

Hot answers tagged

5

The following python commands should give you the long description when available: $ python Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import apt >>> cache = apt.Cache() >>> pkg = cache['python2.7'] >>> pkg <Package: ...


2

Locally (that is, on the server), you can run: find /location/of/repo/ -type f -name '*.deb' Remotely, you can fetch the Packages file and grep it: wget -qO - http://archive.ubuntu.com/ubuntu/dists/trusty-security/main/binary-amd64/Packages.gz \ | zgrep -Po '(?<=^Package: ).*'


1

Apart from @muru answer, if you want to find all the available package in your local repo server from a local Ubuntu system, you can use metadata file of each package resource specified in sources.list which is present in /var/lib/apt/lists/. Only requirement is that your Ubuntu system should be configured to receive update from your local server. For ...


1

You can list all installed packages via dpkg like this dpkg -l You can then pipe that through grep to only find the things you are interesting in: dpkg -l | grep libgmp10 Or you can be less specific in your grep dpkg -l | grep libgmp Grep will find any line in the output with that string. Installing is easy also sudo apt-get install ...


1

There are many ways to find whether a package is installed or not in Ubuntu. For example if we want to find whether vim is installed or not in Ubuntu we can use any of the following commands: dpkg -s vim dpkg --get-selections | grep 'vim' #I always prefer this one as it shows other packages that has the pattern `vim` in their names, very useful in some ...


1

Right now the options are very limited. The available apps can be found by running: snappy search '*'


1

Try to reinstall ceilometer: sudo apt-get purge ceilometer-api ceilometer-collector ceilometer-agent-central ceilometer-agent-notification ceilometer-alarm-evaluator ceilometer-alarm-notifier python-ceilometerclient sudo apt-get --purge autoremove sudo apt-get autoclean sudo rm -rf /var/lib/ceilometer/ /var/log/ceilometer sudo deluser ceilometer sudo ...


1

dpgk -c /var/cache/apt/archive/packagename.deb You can pick -c or --contents. Or if you use wajig, wajig contents /var/cache/apt/archive/packagename.deb does the same. If you just want the location of an executable file (and you know it's name) then which progname tells you; or you could use $(which progname) in your script...


1

It is not really clear what you want - the location of the package or the location of the installed application... For an installed package dpkg -L packagename lists all the files.


1

In the debian/install file, add this line (or only use this line, if there aren't any others in there): moduleFileName /usr/local/lib/python2.7/site-packages/ You basically use the same line format for each file (or directory): filename /path/to/destination/



Only top voted, non community-wiki answers of a minimum length are eligible