Join the community today
Register Now

Sysadmin Updating logwatch to latest

Discussion in 'System Administration' started by Sunka, Oct 11, 2016.

  1. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    5:15 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    Any chance to update logwatch to newest 7.4.3 version?

    we have installed older version by default, how to merge all settings with new one during/after upgrade?

    P.S. I posted here because there is no logwatch dedicated thread

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    1:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    just start your own thread ;) move post :)

    i'd stick with centos yum provided version for now for easier maintenance as I have no plans on maintaining source installs for logwatch right now
     
  3. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    5:15 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    It should be somethin like this

    Code:
    Go to a temp install or source directory on your server.
    # cd /usr/local/src
    Get the source for logwatch
    # wget http://downloads.sourceforge.net/project/logwatch/logwatch-7.4.3/logwatch-7.4.3.tar.gz?r=&ts=1476136095&use_mirror=hean
    Extract the files
    # tar xvfz logwatch-7.4.3.tar.gz
    Make the install script executable
    # cd logwatch-7.4.3
    # chmod a+x install_logwatch.sh
    Run the script & enter the correct paths for logwatch:
    # ./install_logwatch.sh
    ...Logwatch Basedir [/usr/share/logwatch]  : /etc/log.d
    ...Logwatch ConfigDir [/etc/logwatch] : /etc/log.d
    ...temp files [/var/cache/logwatch] : <enter>
    ...perl [/usr/bin/perl] : <enter>
    ...manpage [/usr/share/man] : <enter>
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    1:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    try on test server and see ;)

    that's why i setup local virtualbox centos 6/7 servers for testing before doing on live ;) :D
     
  5. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    5:15 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    I will stay too than ;)
     
  6. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    5:15 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    I do not have test server, never have. Do not ask me why :cry:
     
  7. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    1:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    next must do step to setup a test server especially if you want to venture off beyond what is provided by Centmin Mod out of the box :)
     
  8. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    5:15 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    That will get me more confused than one server.
    I have only one server with live forum and everything is tested/installed/reinstalled/uninstalled on this poor server
     
  9. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    1:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    should test separately ;)

    even spinning up a new droplet based on a backup image of live server for testing is good. That's why i like Linode's clone server feature, i can clone a copy of live forums for staging tests too