Struct libalpm::Package
[−]
[src]
pub struct Package<'a> { /* fields omitted */ }
An owning version of Package
Methods
impl<'b> Package<'b>
[src]
fn load<'a>(
alpm: &'a Alpm,
filename: &str,
full: bool,
level: SigLevel
) -> AlpmResult<Package<'a>>
alpm: &'a Alpm,
filename: &str,
full: bool,
level: SigLevel
) -> AlpmResult<Package<'a>>
Creates a package from a file
Methods from Deref<Target = PackageRef>
fn check_md5(&self) -> bool
Checks package integrity using md5. Returns true on success.
fn compute_required_by(&self) -> Vec<String>
Gets a list of all packages that require this package.
fn compute_optional_for(&self) -> Vec<String>
Gets a list of all packages optionally require this package.
fn should_ignore(&self, alpm: &Alpm) -> bool
Should this package be ignored when upgrading (as set on the alpm handle).
fn filename(&self) -> &str
Get the name of the file containing this package.
fn base(&self) -> Option<&str>
Gets the package base name, if it has one.
fn name(&self) -> &str
Gets the package name.
fn version<'a>(&'a self) -> PackageVersion<'a>
Gets the package version.
fn origin(&self) -> PackageFrom
Gets the origin of the package.
fn description(&self) -> &str
Gets the package description.
fn url(&self) -> &str
Gets the package url.
fn build_date(&self) -> NaiveDate
Gets the package build date.
fn install_date(&self) -> Option<NaiveDate>
Gets the install timestamp of this package.
fn packager(&self) -> &str
Gets the packager's name
fn md5(&self) -> Option<&str>
Gets the md5 checksum for this package.
fn sha256(&self) -> Option<&str>
Gets the sha256 checksum for this package.
fn arch(&self) -> &str
Gets the architecture for which this package was built.
fn remote_size(&self) -> u64
Gets the size of the package on a sync database.
fn local_size(&self) -> u64
Returns the size of the package when it is installed.
fn reason(&self) -> Reason
Gets the reason this package was installed.
fn licenses(&self) -> Vec<&str>
Gets the licenses for this package
fn groups(&self) -> Vec<&str>
Gets the groups this package belongs to.
fn depends<'a>(&'a self) -> Vec<Dependency<'a>>
Gets the packages this package depends on.
fn optionally_depends<'a>(&'a self) -> Vec<Dependency<'a>>
Gets the packages this package optionally depends on.
fn conflicts<'a>(&'a self) -> Vec<Dependency<'a>>
Gets the packages this package conflicts with.
fn provides<'a>(&'a self) -> Vec<Dependency<'a>>
Gets the packages provided by this package.
fn deltas(&self) -> Vec<&str>
Gets the available deltas for this package.
fn replaces<'a>(&'a self) -> Vec<Dependency<'a>>
Gets a list of packages to be replaced by this package.
fn files<'a>(&'a self) -> FileList<'a>
Gets a list of files installed by this package.
fn backup<'a>(&self) -> Vec<Backup<'a>>
Gets a list of files backed up when installing this package.
fn base64_signature(&self) -> &str
Get thie base64 encoded package signature.
fn validation(&self) -> Validation
Gets the method used to validate a package during install
fn changelog(&self)
Opens the changelog for reading
fn mtree(&self)
Gets the package's mtree.
fn has_scriptlet(&self) -> bool
Returns true if the package has an install scriptlet, false if not.
fn download_size(&self) -> u64
Gets the size of the download required to install this package, or to upgrade this package
to the version of self
.
fn unused_deltas(&self) -> Vec<&str>
Dont know what this is for
TODO I'm guessing the return type as it's not in the alpm.h docs. I'm setting it to match
deltas
. check for segfaults.
fn set_reason(&self, r: Reason) -> bool
Sets the reason for a package in the local database. Returns true if reason was successfully changed, false otherwise.
Use Alpm.error
to get an error on failure.
fn sync_new_version<'a>(&self, dbs: Vec<Db<'a>>) -> Option<&'a PackageRef>
(As part of overall transaction) Checks for new version of this package in sync repos.
Returns the first newer version found
Trait Implementations
impl<'a> Drop for Package<'a>
[src]
impl<'a> Deref for Package<'a>
[src]
type Target = PackageRef
The resulting type after dereferencing
fn deref(&self) -> &PackageRef
The method called to dereference a value