New view to display information about installed packages from the package manager. Very much like the normal tree view and treemap, but the top level would be packages.
foo.deb
usr
bin
foo
share
lib
foo
foo-list.dat
foo-users.dat
bar_i386.deb
usr
lib32
libbar.so.42
libbar.so.42.1.0
bar_amd64.deb
usr
lib
libbar.so.42
libbar.so.42.1.0
class PkgInfo: public DirInfo
class PkgReadJob: public DirReadJob
- Get a list of all installed packages from the system's package manager
- Iterate over all those packages: For each one
- Put it into a DirTree
- Get a file list for that package; for each entry
- create the directory nodes under the package node
- lstat() for the entry
- create a FileInfo for the entry
- create the directory nodes under the package node
dpkg -l
(Poor formatting)
Better:
dpkg-query --show --showformat='${Package}\n'
dpkg-query --show --showformat='${Package} ${Architecture} ${Version}\n'
dpkg -L <pkg-name>
dpkg --listfiles <pkg-name>
rpm -qa --queryformat ...
rpm -ql <pkg-name>
uname -m
(Supported on Ubuntu, SUSE, BSD)
Faster file lists for RPM: