libdnf5.comps
- class libdnf5.comps.Environment(*args)
- get_base()
- Return type:
libdnf5::BaseWeakPtr
- Returns:
The Base object to which this object belongs.
Since: 5.2.6
- get_description()
- Return type:
string
- Returns:
The Environment description.
Since: 5.0
- get_environmentid()
- Return type:
string
- Returns:
The Environment id.
Since: 5.0
- get_groups()
- Return type:
std::vector< std::string,std::allocator< std::string > >
- Returns:
std::vector of Group ids belonging to the Environment.
Since: 5.0
- get_installed()
- Return type:
boolean
- Returns:
true if the Environment is installed (belongs to the @System repo).
Since: 5.0
- get_name()
- Return type:
string
- Returns:
The Environment name.
Since: 5.0
- get_optional_groups()
- Return type:
std::vector< std::string,std::allocator< std::string > >
- Returns:
std::vector of optional Group ids belonging to the Environment.
Since: 5.0
- get_order()
- Return type:
string
- Returns:
The Environment display order.
Since: 5.0
- get_reason()
- Return type:
int
- Returns:
Resolved reason why the Environment was installed. Environments can be installed due to multiple reasons, only the most significant is returned.
Since: 5.0
- get_repos()
- Return type:
std::set< std::string,std::less< std::string >,std::allocator< std::string > >
- Returns:
std::set of names of repositories that contain the Environment.
Since: 5.0
- get_translated_description(*args)
- get_translated_name(*args)
- serialize(path)
Serialize the Environment into an xml file :type path: string :param path: Path of the output xml file. :raises: utils::xml::XMLSaveError When saving of the file fails. Since: 5.0
- thisown
- class libdnf5.comps.EnvironmentQuery(*args)
Query is a Set with filtering capabilities.
- filter_environmentid(*args)
- filter_installed(value)
- filter_name(*args)
- get_base()
- Return type:
libdnf5::BaseWeakPtr
- Returns:
The Base object to which this object belongs.
Since: 5.2.6
- thisown
- class libdnf5.comps.Group(*args)
- get_base()
- Return type:
libdnf5::BaseWeakPtr
- Returns:
The Base object to which this object belongs.
Since: 5.2.6
- get_default()
- Return type:
boolean
- Returns:
true if the Group is installed by default.
Since: 5.0
- get_description()
- Return type:
string
- Returns:
The Group description.
Since: 5.0
- get_groupid()
- Return type:
string
- Returns:
The Group id.
Since: 5.0
- get_installed()
- Return type:
boolean
- Returns:
true if the Group is installed (belongs to the @System repo).
Since: 5.0
- get_langonly()
- Return type:
string
- Returns:
The Group langonly.
Since: 5.0
- get_name()
- Return type:
string
- Returns:
The Group name.
Since: 5.0
- get_order()
- Return type:
string
- Returns:
The Group display order.
Since: 5.0
- get_packages()
- Return type:
std::vector< libdnf5::comps::Package,std::allocator< libdnf5::comps::Package > >
- Returns:
std::vector of Packages belonging to the Group.
Since: 5.0
- get_packages_of_type(type)
- Return type:
std::vector< libdnf5::comps::Package,std::allocator< libdnf5::comps::Package > >
- Returns:
std::vector of Packages of given type belonging to the Group.
- Parameters:
type (int) – One of the PackageTypes.
Since: 5.0
- get_reason()
- Return type:
int
- Returns:
Resolved reason why the Group was installed. Groups can be installed due to multiple reasons, only the most significant is returned.
Since: 5.0
- get_repos()
- Return type:
std::set< std::string,std::less< std::string >,std::allocator< std::string > >
- Returns:
std::set of names of repositories that contain the Group.
Since: 5.0
- get_translated_description(*args)
- get_translated_name(*args)
- get_uservisible()
- Return type:
boolean
- Returns:
true if the Group is visible to the users.
Since: 5.0
- serialize(path)
Serialize the Group into an xml file. :type path: string :param path: Path of the output xml file. :raises: utils::xml::XMLSaveError When saving of the file fails. Since: 5.0
- thisown
- class libdnf5.comps.GroupQuery(*args)
Query is a Set with filtering capabilities.
- filter_default(value)
- filter_groupid(*args)
- filter_installed(value)
- filter_name(*args)
- filter_package_name(*args)
Filter groups by packages they contain. Keep only groups that contain packages with given names.
- Parameters:
patterns (std::vector< std::string,std::allocator< std::string > >) – A vector of strings (package names) the filter is matched against.
cmp_type – A comparison (match) operator, defaults to QueryCmp::EQ.
Since: 5.12
- filter_uservisible(value)
- get_base()
- Return type:
libdnf5::BaseWeakPtr
- Returns:
The Base object to which this object belongs.
Since: 5.2.6
- thisown
- class libdnf5.comps.Package(*args)
- get_condition()
- Return type:
string
- Returns:
The condition (name of package) under which the package gets installed.
Since: 5.0
- get_name()
- Return type:
string
- Returns:
The Package name.
Since: 5.0
- get_type()
- Return type:
int
- Returns:
The PackageType.
Since: 5.0
- get_type_string()
- Return type:
string
- Returns:
std::string that corresponds to the PackageType.
Since: 5.0
- set_condition(value)
- set_name(value)
- set_type(value)
- thisown
- libdnf5.comps.PackageType_CONDITIONAL
- libdnf5.comps.PackageType_DEFAULT
- libdnf5.comps.PackageType_MANDATORY
- libdnf5.comps.PackageType_OPTIONAL
- class libdnf5.comps.SackQueryEnvironment(*args)
Query is a Set with filtering capabilities.
- filter(*args)
- get()
Get a single object. Raise an exception if none or multiple objects match the query.
- get_data(*args)
- list()
List all objects matching the query.
- thisown
- class libdnf5.comps.SackQueryGroup(*args)
Query is a Set with filtering capabilities.
- filter(*args)
- get()
Get a single object. Raise an exception if none or multiple objects match the query.
- get_data(*args)
- list()
List all objects matching the query.
- thisown
- class libdnf5.comps.SetEnvironment(*args, **kwargs)
Set represents set of objects (e.g. repositories, or groups) and implements set operations such as unions or differences.
- add(*args)
- begin()
- clear()
- contains(obj)
- difference(other)
- empty()
- end()
- find(obj)
- get_data(*args)
- intersection(other)
- is_subset(other)
- is_superset(other)
- remove(obj)
- size()
- swap(other)
- symmetric_difference(other)
- thisown
- update(other)
- libdnf5.comps.SetEnvironment__iter__(self)
- class libdnf5.comps.SetGroup(*args, **kwargs)
Set represents set of objects (e.g. repositories, or groups) and implements set operations such as unions or differences.
- add(*args)
- begin()
- clear()
- contains(obj)
- difference(other)
- empty()
- end()
- find(obj)
- get_data(*args)
- intersection(other)
- is_subset(other)
- is_superset(other)
- remove(obj)
- size()
- swap(other)
- symmetric_difference(other)
- thisown
- update(other)
- libdnf5.comps.SetGroup__iter__(self)
- class libdnf5.comps.SwigPyIterator(*args, **kwargs)
- advance(n)
- copy()
- decr(n=1)
- distance(x)
- equal(x)
- incr(n=1)
- next()
- previous()
- thisown
- value()
- class libdnf5.comps.VectorPackage(*args)
- append(x)
- assign(n, x)
- back()
- begin()
- capacity()
- clear()
- empty()
- end()
- erase(*args)
- front()
- get_allocator()
- insert(*args)
- iterator()
- pop()
- pop_back()
- push_back(x)
- rbegin()
- rend()
- reserve(n)
- size()
- swap(v)
- thisown
- libdnf5.comps.any(flags)
- libdnf5.comps.package_type_from_string(*args)
- libdnf5.comps.package_type_to_string(type)
- libdnf5.comps.package_types_to_strings(types)