yum-updatesd

Hello!

I installed OpenSUSE server and now I try to configure notifications about updates. I installed and configured yum-updatesd in very typical way.


run_interval = 60
updaterefresh = 60
emit_via = email
do_update = no
do_download = no
do_download_deps = no
email_to = [EMAIL="rysic@ema.il"]rysic@ema.il[/EMAIL]
email_from = [EMAIL="serwer@ema.il"]serwer@ema.il[/EMAIL]

Sending e-mails from server (from phpBB) is working. But I don’t get any e-mails from yum-updatesd. I don’t know what can I check/how to debug.
I can see only in log that daemon is starting.

What can be wrong? What and where can I check so solve problem?

On 06/04/2013 04:06 PM, rysic wrote:
> I installed OpenSUSE server

please copy paste the results of this command back to this thread:


lsb_release -sircd


dd

I’m sorry! I forgot to write that it is 12.3 x64


# lsb_release -sircd
openSUSE project "openSUSE 12.3 (x86_64)" 12.3 Dartmouth

anyway, lsb_release command is not available by default in console OpenSUSE installation :slight_smile:

On 06/04/2013 10:26 PM, rysic wrote:
> anyway, lsb_release command is not available by default in console
> OpenSUSE installation

really? did you have to install it before you ran it?

where did you get your install media, and did you run the md5sum
check against it before installing??

and, when you say you “installed OpenSUSE server” what does that
mean? did you get your install image from this page:
http://software.opensuse.org/

well, i have gone as far as i can trying to help–i tried to install
it on my 11.4 Evergreen system, and it would not…

i was just gonna look for the instruction probably somewhere in
/user/share/doc or man…did you make sure you set the config file
correctly for the version of openSUSE you are using (and maybe not
some other distro you are used to, when you write “in very typical
way.”

maybe someone with yum-updatesd will come by and help you…we can
hope…

but please answer my questions, the next potential helper might never
speak up if it looks like you left the building.


dd
openSUSE®, the “German Engineered Automobile” of operating systems!
http://goo.gl/PUjnL
http://tinyurl.com/DD-Caveat
http://tinyurl.com/DD-Hardware
http://tinyurl.com/DD-Software

Yes :slight_smile:

Yes, from software.opensuse.org: Download openSUSE 12.3. It was NET installation and when I say “installed OpenSUSE server”, then I think that its purpose is to be server and I chosed no graphical interface during the installation (as I remember this option is called server, but I’m not sure).

I looked at instruction in manual, but there are not many options:


yum-updatesd.conf(5)                                  yum-updatesd configuration file                                  yum-updatesd.conf(5)



NAME
       yum-updatesd.conf - Configuration file for yum-updatesd(8).

DESCRIPTION
       yum-updatesd uses a configuration file at /etc/yum/yum-updatesd.conf.

       Additional configuration information is read from the main yum.conf (5) configuration file.


PARAMETERS
       There is one section in the yum-updatesd configuration file, main, which defines all of the global configuration options.


[main] OPTIONS
       The [main] section must exist for yum-updatesd to do anything. It consists of the following options:


       run_interval
              Number of seconds to wait between checks for available updates.


       updaterefresh
              Minimum number of seconds between update information refreshes to avoid hitting the server too often.


       emit_via
              List of ways to emit update notification.  Valid values are `email', `dbus' and `syslog'.


       do_update
              Boolean option to decide whether or not updates should be automatically applied.  Defaults to False.


       do_download_deps
              Boolean option to decide whether or not updates should be automatically downloaded.  Defaults to False.


       do_download_deps
              Boolean option to automatically download dependencies of packages which need updating as well.  Defaults to False.


MAIL OPTIONS
       email_to
              List of email addresses to send update notification to.  Defaults to `root@localhost'.


       email_from
              Email address for update notifications to be from.  Defaults to `yum-updatesd@localhost'.


SYSLOG OPTIONS
       syslog_facility
              What syslog facility should be used.  Defaults to `DAEMON'.


       syslog_level
              Level of syslog messages.  Defaults to `WARN'.



FILES
       /etc/yum/yum-updatesd.conf


SEE ALSO
       yum-updatesd(8) yum.conf(5)




Jeremy Katz                                                                                                            yum-updatesd.conf(5)

This man is from OpenSUSE :wink:

On 06/05/2013 09:16 AM, rysic wrote:
>
>> and, when you say you “installed OpenSUSE server” what does that
>> mean?
>>
> Yes, from ‘software.opensuse.org: Download openSUSE 12.3’
> (http://software.opensuse.org/). It was NET installation and when I say
> “installed OpenSUSE server”, then I think that its purpose is to be
> server and I chosed no graphical interface during the installation (as I
> remember this option is called server, but I’m not sure).

ok, now i understand…thank you.

> I looked at instruction in manual, but there are not many options:

thank you for including the info: from them i have only these
comments: for both run_interval and updaterefresh you have entered 60
seconds…so, every minute of every day you are hitting the update
servers to see if there is something new. really? every minute…i
don’t think the machine can complete a check in a minute, so you must
have two or three checks going on all the time…

so, 600 second would check every ten minutes, or six times a hour, or
144 times each and every day.

personally, i check about once a day (86400 seconds)

but, more important i wonder why you elected to use
yum-updatesd and how you set it up to check the openSUSE update repo?
or is it born knowing where/how to check the update repos to see if
any are waiting??

hmmmm, let me ask a different way:

-what is your experience with SUSE/openSUSE? i ask because yum is
not the normal software package used for software management,
instead YaST or zypper are the normal means for openSUSE/SUSE and yum
is normal for Red Hat/Fedora/CentOS and maybe some others…i know
some folks come new to here from a yum package management background
and want to use it rather than YaST or zypper…i have NO idea how
successful they are at that, perhaps you can enlighten me…

-so, i wonder if you installed the full/needed complement of yum
packages and configured them to ‘look’ at the normal openSUSE repos
in order to determine if the running system needs to be updated??

-because, if you didn’t set it up to look in the right place, it is
probably throwing an error 1,440 times per day! and it never gets to
the point where it tries to send an email!!

-i wonder, have you looked at /var/log/messages or maybe
/var/log/yum* to see if there are tons of errors stacking up? (or did
you even set up yum to report errors to a log somewhere? where?)

-so, assuming you did install and correctly set up all of yum to do
this assigned task: do you have postfix or other mailserver running
to relay the email sent by yum-updatesd on to the address specified?

these are all questions i think the awaited yum guru might have to
ask prior to knowing what should be looked at to help you solve your
problem.


dd
http://tinyurl.com/DD-Caveat

OK! So now I think that I am a little closer to sovle problem. Yum does not see zypper repos.


# yum update
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 You can enable repos with yum-config-manager --enable <repo>

So if yum is not so good idea for OpenSUSE, then what is dedicated sollution to send e-mails about available updates in SUSE?

You would have to add the update repo to yum. I never used yum, but according to the output you should use “yum-config-manager” for this.

So if yum is not so good idea for OpenSUSE, then what is dedicated sollution to send e-mails about available updates in SUSE?

Have a look at /etc/sysconfig/packagekit-background! This should do exactly what you want…:wink:

Or you could try YaST->Online Update Configuration. This sets up a cronjob to call zypper which you could edit to your likings. It’s found in /etc/cron.{daily|weekly|monthly} according to the setting.

Yes, /etc/sysconfig/packagekit-background is working very good! :slight_smile:
Thank you very much!