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.