Skip to content

This script is create 'updateinfo.xml' file from Vuls report file(xml) to make the 'yum --security update' command work on CentOS.

License

Notifications You must be signed in to change notification settings

GEROMAX/vuls_to_updateinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

vuls_to_updateinfo

This script is create 'updateinfo.xml' file from Vuls report file(xml) to make the 'yum --security update' command work on CentOS.

Usage

  1. Execute vuls scan and report(xml).

  2. Create 'updateinfo.xml' file.

    $ /some/path/ruby vuls_to_updateinfo.rb /vuls/report/file.xml

    • It will write 'updateinfo.xml' file at current directory.
  3. Create repository for 'yum --security update'.

    $ mkdir /somedirectory
    $ createrepo /somedirectory

    • Need package installation of 'createrepo'.
  4. Write 'updateinfo.xml' to repository.

    $ cd /somedirectory
    $ modifyrepo /some/path/updateinfo.xml repodata

  5. Add setting yum's repository at '/etc/yum.repos.d/CentOS-Base.repo'.

    [security]
    name=CentOS-$releasever - Security
    baseurl=file:///somedirectory

  6. Try 'yum check-update'.

    $ yum --security check-update

When security update found, do again step 2 and 4.

Tested on

ruby

  • 2.3.3
  • 2.4.2

About

This script is create 'updateinfo.xml' file from Vuls report file(xml) to make the 'yum --security update' command work on CentOS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages