Pkg
Pkg
a Pkg represents a package installable via the system's package manager, like apt-get
or yum
.
if not Pkg<curl> {
.install;
say "installed $_ {.version}";
}
Bool
method Bool( ā¶ Bool)
In Bool context Pkgs return .installed
install
method install( ā¶ Bool)
Installs the package via the builtin package manager. Returns true if the package was successfully installed.
installed
method installed( ā¶ Bool)
Returns True if a version of the package is installed.
update-pkglist
method update-pkglist( ā¶ Bool)
Tells the system specific package manager to update its list of pacakges.
version
method version( ā¶ Str)
Gets the version of the currently installed package