Pkg upgrade updating repository catalogue no valid repository found
You can grab a development snapshot of pkg from the pkg Git Hub repository To get the latest version of pkg from the Git repo, just clone it: Or you can take an already tagged release of pkg from the above web page as well.
pkg package format is a tar archive which can be raw, or use the following compression: gz, bzip2 and xz, defaulting in xz format.
Any dependencies will be downloaded and installed first.
This is possible because we have the dependency information in the catalogue of the remote repository.
Once you have the pkg sources, installing it is fairly easy: Now you should have the latest pkg installed on your system.
Note that this build and install procedure does not update the local package database at all, so you will get some odd effects due to the packaging system being misled into thinking an older version of pkg is installed.