apt

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKeyringPath

func GetKeyringPath(ppaName string) string

GetKeyringPath returns the keyring path for a PPA

func GetSourcesPath

func GetSourcesPath(ppaName string) string

GetSourcesPath returns the sources.list.d path for a PPA

Types

type PPAConfig

type PPAConfig struct {
	Name         string // PPA identifier (e.g., "mise")
	KeyURL       string // GPG public key URL
	RepoURL      string // Repository base URL
	Distribution string // Distribution codename or version (e.g., "stable")
	Component    string // Repository component (e.g., "main")
	Architecture string // Target architecture (auto-detected if empty)
}

PPAConfig defines the configuration for a Debian/Ubuntu PPA (Personal Package Archive)

type PPAManager

type PPAManager struct {
}

PPAManager handles PPA installation and management

func NewPPAManager

func NewPPAManager() *PPAManager

NewPPAManager creates a new PPA manager instance

func (*PPAManager) AddPPA

func (pm *PPAManager) AddPPA(config PPAConfig) error

AddPPA adds a PPA repository to the system This function is idempotent - it checks if the PPA is already configured before making changes

Jump to

Keyboard shortcuts

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