Packages: Difference between revisions

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:


=== What files did this package install? ===
=== What files did this package install? ===
The synaptic gui will have a 'properties' tab that lists all the files installed.  On the console, you can use <code>dpkg-query --listfiles package_name</code>.  I don't use <code>apt-file</code> since dpkg is already installed on a base system.
The synaptic gui will have a 'properties' tab that lists all the files installed.  On the console, you can use <code>dpkg-query --listfiles package_name</code>.  I don't use <code>apt-file</code> since '''[https://man7.org/linux/man-pages/man1/dpkg.1.html dpkg]''' is already installed on a base system.


=== What package provides file Y? ===
=== What package provides file Y? ===
Line 17: Line 17:


You can also use the web interface at http://packages.ubuntu.com/
You can also use the web interface at http://packages.ubuntu.com/
=== What PPA and sources am I installing from? ===
It is surprising that I haven't found a simple command to list apt sources.
<code>grep -r --include '*.list' '^deb ' /etc/apt/sources.list*</code>
or even pretty up the output a bit [https://askubuntu.com/a/741948/146518 from here]


=== Remove old kernels ===
=== Remove old kernels ===