How to find the files that came with my package?

So I decided to install a package (a daemon/service actually) and it went smoothly. I know I need to configure this package but I cannot find the config file.

On Ubuntu, most daemons/services create an “init” script in /etc/init.d. I cannot find the package init script in /etc/init.d

Can you please help? Thanks

/etc/xxxxx?

Which package?
Link?

Edited first post. Thanks

Edited first page. But I seemed to recall that in Ubuntu it’s possible to "view the log"and see all the files that’s installed for any package. I can’t remember the exact command now.

PS. I did a find for the conf file using sudo find / -iname “myfilehere” -type f and it didn’t come up.

My question is not for a specific package but for --any-- package.

I seemed to recall that in Ubuntu it’s possible to "view the log"and see all the files that were installed for any package. I can’t remember the exact command now.

PS. I did a find for the conf file using sudo find / -iname “myfilehere” -type f and it didn’t come up.

My question is not for a specific package but for --any-- package.

I seemed to recall that in Ubuntu it’s possible to "view the log"and see all the files that were installed for any package. I can’t remember the exact command now.

PS. I did a find for the conf file using sudo find / -iname “myfilehere” -type f and it didn’t come up. Also there’s no package folder in /etc. That’s the first place that I checked.

rpm -ql Packagename

shows all Files inside a Package

Systemwide Configuration is normally done in /etc or /etc/Packagename.

User Configuration is normally done in a hidden Folder in /home/Username.

You are to vague about what you are doing and having. Pointing to Ubuntu might not help. Most here run openSUSE and have no idea about Ubuntu peculiarities. There is no general answer for “any package”. It depends on how close a package is designed with openSUSE in mind.

When a package installed with YaST/zypper, you can find the files that are installed with YaST > Software > Software Management, Search for the package in the Search field, then select the package at right. Right below are tabs, choose the Files tab and see them.

When it is not from a repository, but just an RPM you installed, inpspect the RPM as given above.

When it is a different type of installation, it depends complete about what you have/got.

When it is a service/daemon, it again depends on what it is/where it is from. “Normal” packages from the repos, will show up in YaST > System > Services Manager were you can start/stop enable/disable them.
BTW openSUSE uses systemd and it is unlikely that services/daemons using it will install things in /etc/init.d. They are more likely to install systemd unit files ,etc. in their proper places.

Hi
So, openSUSE uses systemd these days, so there is possible a systemd service file rather than an init file…;


systemctl status <some_daemon>

The above command will also provide info on where it’s living and even man page details if applicable.

Then if specific options are to be add, these should be in a /etc/sysconfig/<some_daemon> which can be edited with YaST /etc/sysconfig editor (or manually).

On Sun, 27 Aug 2017 12:56:01 +0000, mrjayviper wrote:

> Sauerland;2835762 Wrote:
>> /etc/xxxxx?
>>
>> Which package?
>> Link?
>
> My question is not for a specific package but for --any-- package.
>
> I seemed to recall that in Ubuntu it’s possible to "view the log"and see
> all the files that were installed for any package. I can’t remember the
> exact command now.
>
> PS. I did a find for the conf file using sudo find / -iname “myfilehere”
> -type f and it didn’t come up.

rpm -ql <packagename>

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

you want a specific answer for a general question
mine is to open said rpm file with an archive manager like Ark or Filer Roller or Double Commander
and see the file structure inside the rpm archive it will show you the file and folder structure and you can open/extract said files without installing the rpm

Some time ago I installed apache2 and got some unit files:

erlangen:~ # rpm -ql apache2|grep /usr/lib/
/usr/lib/systemd/system/apache2.service
/usr/lib/systemd/system/apache2.target
/usr/lib/systemd/system/apache2@.service
erlangen:~ # 

Apache also has some configuration files:


erlangen:~ # rpm -ql apache2|grep /etc
/etc/apache2
/etc/apache2/charset.conv
/etc/apache2/conf.d
/etc/apache2/default-server.conf
/etc/apache2/errors.conf
/etc/apache2/global.conf
/etc/apache2/httpd.conf
/etc/apache2/listen.conf
/etc/apache2/loadmodule.conf
/etc/apache2/magic
/etc/apache2/mime.types
/etc/apache2/mod_autoindex-defaults.conf
/etc/apache2/mod_cgid-timeout.conf
/etc/apache2/mod_info.conf
/etc/apache2/mod_log_config.conf
/etc/apache2/mod_mime-defaults.conf
/etc/apache2/mod_reqtimeout.conf
/etc/apache2/mod_status.conf
/etc/apache2/mod_userdir.conf
/etc/apache2/mod_usertrack.conf
/etc/apache2/protocols.conf
/etc/apache2/server-tuning.conf
/etc/apache2/ssl-global.conf
/etc/apache2/ssl.crl
/etc/apache2/ssl.crl/README.CRL
/etc/apache2/ssl.crt
/etc/apache2/ssl.crt/README.CRT
/etc/apache2/ssl.csr
/etc/apache2/ssl.csr/README.CSR
/etc/apache2/ssl.key
/etc/apache2/ssl.key/README.KEY
/etc/apache2/ssl.prm
/etc/apache2/ssl.prm/README.PRM
/etc/apache2/uid.conf
/etc/apache2/vhosts.d
/etc/apache2/vhosts.d/vhost-ssl.template
/etc/apache2/vhosts.d/vhost.template
/etc/logrotate.d/apache2
/etc/sysconfig/SuSEfirewall2.d/services/apache2
/etc/sysconfig/SuSEfirewall2.d/services/apache2-ssl
erlangen:~ # 

Obviously the are no init scripts:


erlangen:~ # rpm -ql apache2|grep /etc/init.d/
erlangen:~ # 

With openSUSE and “zypp” (the CLI interface is “zypper”) the log of all the changes made to the system by the installation or removal of RPM packages (“Yet Another Difference To Ubuntu” –>> “YADTU”) is located in “/var/log/zypp/” with the name “history” and, it’s world readable – normal users can browse “/var/log/zypp/history” with the CLI command “less”.

Checking if everything has been installed correctly is normally done by using a “normal” user to execute the following CLI command:


 > zypper verify --details 
Loading repository data...
Reading installed packages...

Dependencies of all installed packages are satisfied.
 > 

A more detailed view may be obtained by using either “rpm --verify <Package Name>” or “rpm --verify --all” preferably (to allow access to all the directories and files involved) from a CLI of the user “root”. For an explanation of the “rpm” output, the man page has to be consulted.

… or, for GUI users, simply go into Yast=>Software Manager and search out the installed package, select it, and you have tabs, Description tab is usually the default showing.

Click on the tab “File List”, also check out dependencies.

(I personally prefer the zypper methods, though)