Welcome to the Linux Foundation Forum!

08.YUM.Queries - error in example?

I'm very much enjoying the course!

Last example listed in 08.YUM.Queries is:
sudo yum provides "/logrotate.conf"

On my new CentOS 8 box, it is actually:
sudo yum provides "/etc/logrotate.conf"

Not sure if this is a problem or not...

Comments

  • pawel33
    pawel33 Posts: 26

    I think it's mistake. On CentOS 7& 8 i have logrotate on /etc/.

    When i execute
    [pawel@learn-linux ~]$ sudo yum provides "/logrotate.conf"
    i got

    No matches found

    But when i run
    sudo yum provides "/etc/logrotate.conf"
    i got

    logrotate-3.8.6-19.el7.x86_64 : Rotates, compresses, removes and mails system log files[...]

  • luisviveropena
    luisviveropena Posts: 1,144

    Hi @blbryant ,

    Yes, that's an error, it's on /etc/ . I'm gonna report it next week, once that the new platform is running.

    Many regards,
    Luis.

  • coop
    coop Posts: 915

    Actually it is not technically an error. The original had something like "yum provides /path/to/file" and it got "improved to logrotate.conf. The command can still be run and get a null result, as you found, and prompt you to fix it. In the next version we will either put in a non-existant but clearly non-existent example (like /path/to/file) which I would prefer to /etc/logrotate.conf, so the student can play, or just drop everything after "as in..."

  • akamch
    akamch Posts: 3

    There's certainly an error now, "provides" is currently missing from the invocation:
    $ sudo yum /path/to/file

Categories

Upcoming Training