apt

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APT

type APT struct{}

APT for apt in debian

func New added in v0.1.2

func New() APT

New return APT

func (APT) BackupMirror

func (a APT) BackupMirror() error

BackupMirror back up local mirror file to source.list.bak

func (APT) MirrorFilePath

func (a APT) MirrorFilePath() string

MirrorFilePath return mirror file absolute path

func (APT) Refresh

func (a APT) Refresh() *bufio.Reader

Refresh execute apt update to update source and cleanup cache

func (APT) Version

func (a APT) Version() string

Version get apt's version

func (APT) WriteFile

func (a APT) WriteFile(mirrors filter.Results) error

WriteFile write mirror to file

Jump to

Keyboard shortcuts

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