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

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.