Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to find the files that came with my package?

  1. #1

    Default 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

  2. #2
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,929

    Default AW: How to find the files that came with my package?

    /etc/xxxxx?

    Which package?
    Link?

  3. #3

    Default Re: AW: How to find the files that came with my package?

    Quote Originally Posted by Sauerland View Post
    /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. Also there's no package folder in /etc. That's the first place that I checked.

  4. #4
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,929

    Default AW: How to find the files that came with my package?

    Code:
    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.

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,977

    Default Re: AW: How to find the files that came with my package?

    Quote Originally Posted by mrjayviper View Post
    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.
    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.
    Henk van Velden

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,650
    Blog Entries
    15

    Default Re: AW: How to find the files that came with my package?

    Quote Originally Posted by mrjayviper View Post
    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.
    Hi
    So, openSUSE uses systemd these days, so there is possible a systemd service file rather than an init file...;
    Code:
    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).
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,048

    Default Re: How to find the files that came with my package?

    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

  8. #8
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: How to find the files that came with my package?

    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

  9. #9
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    959

    Default Re: How to find the files that came with my package?

    Quote Originally Posted by mrjayviper View Post
    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
    Some time ago I installed apache2 and got some unit files:


    Code:
    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:

    Code:
    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:
    Code:
    erlangen:~ # rpm -ql apache2|grep /etc/init.d/
    erlangen:~ #
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), openSUSE Tumbleweed, KDE Plasma 5

  10. #10
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    2,514

    Default Re: AW: How to find the files that came with my package?

    Quote Originally Posted by mrjayviper View Post
    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.
    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:
    Code:
     > 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.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •