yum

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YUM

type YUM struct{}

YUM for CentOS's yum

func New

func New() YUM

New return a YUM

func (YUM) BackupMirror

func (y YUM) BackupMirror() error

BackupMirror for backing up local yum mirrors file Back`

func (YUM) MirrorFilePath

func (y YUM) MirrorFilePath() string

MirrorFilePath return yum source file path

func (YUM) Refresh

func (y YUM) Refresh() *bufio.Reader

Refresh cleanup cache and make new source cache

func (YUM) Version

func (y YUM) Version() string

Version for get version of yum in localhost

func (YUM) WriteFile

func (y YUM) WriteFile(mirrors filter.Results) error

WriteFile write files in mirror directory files depend on how many mirrors you choice

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL