Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1003 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 1003 Bytes

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