get_pkgname


Description:

public unowned string get_pkgname ()

Get the first package name of the list of packages that need to be installed for this component to be present on the system.

Since most components consist of only one package, this is safe to use for about 90% of all cases.

However, to support a component fully, please use as_component_get_pkgnames() for getting all packages that need to be installed, and use this method only to e.g. get the main package to perform a quick "is it installed?" check.

Parameters:

this

a Component instance.

Returns:

String array of package names