LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do you view a packages configuration files without installing the package first? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-you-view-a-packages-configuration-files-without-installing-the-package-first-4175713307/)

shanebagel 06-12-2022 12:12 AM

How do you view a packages configuration files without installing the package first?
 
Repoquery has a ton of flags but I cannot find anything like:
rpm -qc packagename

Basically - what if you want to query a command for a list of configuration files but you don't want to install the command first?
I've read through the entire man page on repoquery and I cannot find the flag for configuration files - or maybe I'm just blind?

Thanks!

shanebagel 06-12-2022 12:19 AM

Come to think of it - I can't seem to find a command like:
rpm -qd packagename

Do you guys know of a flag to run with repoquery that will give you both configuration and documentation of a package without having to install it first?

ondoho 06-12-2022 01:09 AM

First of all, for your own good you shouldn't be the first one to reply to your thread because that will remove it from zero reply status, which some people use to find out where they can help.
In the future, edit it instead.

I'm not sure what you mean by config files - if they are part of what a package installs before you run the software the first time then the package manager will show it in a listing of installed files.
But to my knowledge all existing package managers can only do this for already installed files, they cannot see what files a given package would install.

It would be possible to have this feature only if either package maintainers specify this list of installed files inside the package's metadata, or the repository maintainers would test-install each package, and add that metadata that way.

Quote:

Originally Posted by shanebagel (Post 6360275)
Repoquery has a ton of flags but I cannot find anything like:
rpm -qc packagename

Basically - what if you want to query a command for a list of configuration files but you don't want to install the command first?
I've read through the entire man page on repoquery and I cannot find the flag for configuration files - or maybe I'm just blind?

Quote:

Originally Posted by shanebagel (Post 6360278)
Come to think of it - I can't seem to find a command like:
rpm -qd packagename

Do you guys know of a flag to run with repoquery that will give you both configuration and documentation of a package without having to install it first?


shanebagel 06-12-2022 04:31 PM

Thank you sir!

ondoho 06-12-2022 11:17 PM

Quote:

Originally Posted by shanebagel (Post 6360445)
Thank you sir!

You're welcome, but I'm not a sir.

shanebagel 06-13-2022 12:10 PM

Oops lol - well thanks regardless!


All times are GMT -5. The time now is 10:19 PM.