Page 1 of 1

How to get list of installed files for a package? (fossapup 9.5)

Posted: Wed Jan 19, 2022 4:10 pm
by vega88

Hi, I need to use the SDL2 programming library. I see in the package manager that libsdl2 is already installed. Good, but I need to know where the files are. How can I do this? There is no apt, and dpkg also does not give me a useful answer.

Code: Select all

root# dpkg -L libsdl2
dpkg-query: error: failed to open package info file '/var/lib/dpkg/status' for reading: No such file or directory

Re: How to get list of installed files for a package? (fossapup 9.5)

Posted: Wed Jan 19, 2022 7:46 pm
by gychang
vega88 wrote: Wed Jan 19, 2022 4:10 pm

Hi, I need to use the SDL2 programming library. I see in the package manager that libsdl2 is already installed. Good, but I need to know where the files are. How can I do this? There is no apt, and dpkg also does not give me a useful answer.

Code: Select all

root# dpkg -L libsdl2
dpkg-query: error: failed to open package info file '/var/lib/dpkg/status' for reading: No such file or directory

try which libsdl2 or find / -iname "libsdl2"


Re: How to get list of installed files for a package? (fossapup 9.5)

Posted: Thu Jan 20, 2022 2:54 am
by Phoenix

Issue pkg c <package name> in the terminal and it will spit out the file paths.


Re: How to get list of installed files for a package? (fossapup 9.5)

Posted: Thu Jan 20, 2022 7:01 am
by OscarTalks

With SDL2 you have to be careful not to confuse it with the earlier SDL-1.2
Normally with built in packages, you can look in /var/packages/builtin_files for lists of package contents and paths
FossaPup does appear to have libSDL2 as well as some of the SDL-1.2 libraries, but the contents lists for SDL2 may be missing (?).
Anyway, libraries will tend to be in /usr/lib/x86_64-linux-gnu
With the pkgconfig file in the pkgconfig sub-directory of the above
Headers will be in /usr/include/SDL2
For developing (and for all of these files to be present), the devx .sfs must be loaded.
If you are compiling something which has libSDL2 as a dependency, it would normally be found automatically in these fairly standard paths.
Hope that helps, otherwise you might need to say more about exactly what you are trying to do.