How to find out information on an installed package

Bprodz

Is there a method for find out information about an installed package? Such as how it was installed such as via a package manager such as DNF, snap or compiled by the user?

Sometimes I can't remember how I installed a specific package but I always need to include this kind of information in bug reports etc. Is a tool that can provide this kind of information? If not any help in write a script to do this job would be great appreciated.

dirkt

You need to ask whatever package manager could have been used - only the package manager stores meta-information about what packages has been installed, and which files are in the package. There's no way to get such information from a naked file.

You didn't say what flavour of distribution you use, but I recommend always using a single package manager (apt for me), and putting stuff that is compiled by the user somewhere else (for me, /usr/local, managed with stow, and I keep a list of packages). This way it's easy to find out to which package a particular file belongs.

If you use a dozen package managers or so (why?), you could write a script that queries each of them in turn.

Edit

I keep track of stuff I compiled from source by making a file for each package I compiled in /usr/local/packages/<packagename>. I need this anyway because it contains information about how I compiled it (often you need to make adjustments, fix a few things that won't compile with a newer gcc etc.) in case I need to compile it again when I upgrade it. And since I have this file, I also add information about where I downloaded the source, what version it is, what it does, what the name of the source tarball is, etc. I keep track of the installed files by installing everything into /usr/local/stow/<packagename>-<version> (which also sometimes needs adjustments to Makefiles, or ./configure --prefix, etc.), and then use stow to make links to it in /usr/local. I've described this in detail here.

You can also make really deb or rpm packages out of stuff you compile yourself, but this is more work than keeping track of it with stow.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to find out if a specific package is installed on Debian?

From Dev

How to find out if a specific package is installed on Debian?

From Dev

How do I find out how a particular package got installed?

From Dev

How to find out version of software package installed on the node?

From Dev

How to find out which (not installed) Debian package a file belongs to?

From Dev

Find out if installed package is a dependent to other installed package

From Dev

how to view installation information for package to be installed by apt

From Dev

How do I find out what version of a bower package is actually installed?

From Dev

How can I find out, whether a specific package is already installed in Arch Linux

From Dev

Gentoo portage. How to find out why some particular package is installed?

From Dev

How to figure out whether a package is already installed?

From Dev

How to figure out whether a package is already installed?

From Dev

how to find information about not installed packages

From Dev

Where can I find out where a package has been installed to?

From Java

How to find out the version of installed cocoa pods?

From Dev

How to find out what graphics driver is installed?

From Dev

How to find out from where an app was installed?

From Dev

How to find out what graphics driver is installed?

From Dev

Is there a way to find out how long an app is installed?

From Dev

How to find out where ideviceinstaller is installed to?

From Dev

How to find out where different packages are installed?

From Dev

How to find package for installed file in Brew?

From Dev

How to find where a package is installed by pacman?

From Dev

How to find an installed package, if it exists, by precise name?

From Dev

How to find an installed package, if it exists, by precise name?

From Dev

How to find program name(s) of an installed package?

From Dev

How to find the path of an installed "git" package

From Dev

how to find out the kernel's information?

From Dev

package 'gdm' is not installed and no information available

Related Related

  1. 1

    How to find out if a specific package is installed on Debian?

  2. 2

    How to find out if a specific package is installed on Debian?

  3. 3

    How do I find out how a particular package got installed?

  4. 4

    How to find out version of software package installed on the node?

  5. 5

    How to find out which (not installed) Debian package a file belongs to?

  6. 6

    Find out if installed package is a dependent to other installed package

  7. 7

    how to view installation information for package to be installed by apt

  8. 8

    How do I find out what version of a bower package is actually installed?

  9. 9

    How can I find out, whether a specific package is already installed in Arch Linux

  10. 10

    Gentoo portage. How to find out why some particular package is installed?

  11. 11

    How to figure out whether a package is already installed?

  12. 12

    How to figure out whether a package is already installed?

  13. 13

    how to find information about not installed packages

  14. 14

    Where can I find out where a package has been installed to?

  15. 15

    How to find out the version of installed cocoa pods?

  16. 16

    How to find out what graphics driver is installed?

  17. 17

    How to find out from where an app was installed?

  18. 18

    How to find out what graphics driver is installed?

  19. 19

    Is there a way to find out how long an app is installed?

  20. 20

    How to find out where ideviceinstaller is installed to?

  21. 21

    How to find out where different packages are installed?

  22. 22

    How to find package for installed file in Brew?

  23. 23

    How to find where a package is installed by pacman?

  24. 24

    How to find an installed package, if it exists, by precise name?

  25. 25

    How to find an installed package, if it exists, by precise name?

  26. 26

    How to find program name(s) of an installed package?

  27. 27

    How to find the path of an installed "git" package

  28. 28

    how to find out the kernel's information?

  29. 29

    package 'gdm' is not installed and no information available

HotTag

Archive