package
0.22.2
Repository: https://github.com/cassava/repoctl.git
Documentation: pkg.go.dev

# Packages

Package alpm works with parts of Arch Linux packages.
Package aur lets you query the Arch Linux User Repository (AUR).
Package graph provides dependency resolution for AUR packages.
Package meta binds together the three places a package can reside: filesystem, database, and internet.
Package pkgutil provides useful functions for working with packages.

# Functions

EnabledRepositories returns a list of repository names that are enabled in the `/etc/pacman.conf` system configuration file.
IsDatabaseLocked returns whether the database given at the path is currently locked for writing or not.
IsRepositoryEnabled returns whether the repository named is enabled.
PkgNewer returns true if a's version is newer than b's.
PkgOlder returns true if a's version is older than b's.
Read reads the package information from a pacman package and returns it in the Package datatype.
ReadAllSyncDatabases reads all locally synced databases, using /etc/pacman.conf to determine which ones to read.
ReadDatabase reads all the packages from a database file.
ReadDir reads all packages that are found in the repository directory.
ReadDirApproxOnlyNames returns the names of all packages it finds in a directory.
ReadEveryFileInDir reads all the packages it finds in a directory.
ReadFiles reads all the given package files.
ReadLocalDatabase reads the database of locally installed packages.
ReadNames reads all packages with one of the given names in a directory.
ReadSyncDatabase reads one of the package databases synced by pacman, such as "core", "extra", "community", and so on.

# Constants

AUROrigin specifies AUR search origin.
DatabaseOrigin specifies database origin.
FileOrigin specifies package file origin.
LocalOrigin specifies local origin.
UnknownOrigin specifies unknown origin.

# Variables

DebugWriter is used to write debugging information from this module.
PacmanConfPath contains the path to the pacman configuration.
PacmanLocalDatabasePath contains the path to the local pacman library.
PacmanSyncDatabaseFormat is the format that fmt.Sprinf needs to interpolate a repository name into a package database path.

# Structs

The Package datatype represents all the information that encompasses a Pacman package, including the filename of the package.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

PackageOrigin exists to document which fields in the Package type can be expected to be filled with data.
Packages is merely a list of packages.