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

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
vega88
Posts: 6
Joined: Sat Jul 31, 2021 2:18 pm
Been thanked: 1 time

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

Post 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
User avatar
gychang
Posts: 591
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 206 times
Been thanked: 64 times

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

Post 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"

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

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

Post by Phoenix »

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

IRC: firepup | Time to hack Puppy!

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

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

Post 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.

Post Reply

Return to “Users”