Welcome to the Linux Foundation Forum!

08.YUM.Queries - error in example?

blbryantblbryant Posts: 5
edited June 18 in LFS201 Class Forum

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

  • pawel33pawel33 Posts: 9

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

    When i execute
    [[email protected] ~]$ 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[...]

  • luisviveropenaluisviveropena Posts: 544

    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.

  • coopcoop Posts: 437

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

Sign In or Register to comment.