googet

command module
v2.18.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

README

GooGet

Build Status

GooGet (Googet's Obviously Only a Goofy Experimental Title) is a modular package repository solution primarily designed for Windows.

GooGet is shipped with the official Google Cloud Platform Windows images and is used to maintain the guest environment.

This is not an official Google product.

Build

To build and package googet run

go run goopack/goopack.go googet.goospec

This will result in googet.exe and googet.x86_64.VERSION.goo which can be installed on a machine with the googet install command (assuming googet is already installed).

To install on a fresh machine copy both googet.exe and the googet package over and run:

googet -root 'c:/ProgramData/GooGet' install googet googet.x86_64.VERSION.goo

Conf file

GooGet has the ability to use a conf file to change a few of the default settings. Place a file named googet.conf in the googet root, which by default is C:\ProgramData\GooGet and configurable by the -root flag.

proxyserver: http://address_to_proxy:port
archs: [noarch, x86_64]
cachelife: 10m

Repo file

GooGet has the ability to use a repo file to change some repo specific settings. The file is named your-repo-name.repo by default. It can be used to set the source URL and indicate that the client should pass authorization headers in requests to the source URL.

URL: https://foo.com/googet/bar
  useoauth: true

Google Cloud Storage as a back-end

Googet supports using Google Cloud Storage as its server.

set GOOREPO=%TEMP%\googet-repo
set REPONAME=my_repo
mkdir %GOOREPO%\%REPONAME%
mkdir %GOOREPO%\packages
go run goopack/goopack.go googet.goospec
copy *.goo %GOOREPO%\packages
go run server\gooserve.go -root %GOOREPO% -save_index %GOOREPO%\%REPONAME%\index
gsutil mb --project my-project my-googet-server
gsutil rsync -r %GOOREPO% gs://my-googet-server
googet addrepo gcs gs://my-googet-server

rem This command should print 'gcs: gs://my-googet-server'
googet listrepos

rem This command should list the googet package and any other packages in your repo
googet available -sources gs://my-googet-server/

Note that you must regenerate the index and re-upload it to your bucket each time you add or change packges.

Documentation

Overview

The googet binary is the client for the GoGet packaging system, it performs the listing, getting, installing and removing functions on client machines.

Directories

Path Synopsis
Package client contains common functions for the GooGet client.
Package client contains common functions for the GooGet client.
Package download handles the downloading of packages.
Package download handles the downloading of packages.
Package goolib contains common functions useful when working with GooGet.
Package goolib contains common functions useful when working with GooGet.
The goopack binary creates a GooGet package using the provided GooSpec file.
The goopack binary creates a GooGet package using the provided GooSpec file.
Package install handles the installation of packages.
Package install handles the installation of packages.
Package oswrap exists to translate pathnames into extended-length path names behind the scenes, so that googet can install packages with deep directory structures on Windows.
Package oswrap exists to translate pathnames into extended-length path names behind the scenes, so that googet can install packages with deep directory structures on Windows.
Package remove handles the removal of packages.
Package remove handles the removal of packages.
The gooserve binary is used to serve GooGet repositories.
The gooserve binary is used to serve GooGet repositories.
Package system handles system specific functions.
Package system handles system specific functions.
Package verify handles verifying of googet packages.
Package verify handles verifying of googet packages.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL