Download a bunch of packages and cache them in a Binary Manager's remote repository
See the new releases section :)
Those can be run with ./pkgdl-<DISTRO>-<ARCH>
Find your go home (go env
)
then install under $GO_HOME/src
(do not create another folder)
$ git clone https://github.com/lorenyeung/go-pkgdl.git
then run
$ go run $GO_HOME/src/go-pkgdl/pkgdl/pkgdl.go
Happy downloading! :)
-
apikey
- Description:
- API key or password
- Description:
-
credsfile
- Description:
- File/Filepath with creds. If there is more than one, it will pick randomly per request. Use whitespace to separate out user and password
- Description:
-
ducheck
- Description:
- Disk Usage check in minutes (default 5)
- Description:
-
duthreshold
- Description:
- Set Disk usage threshold in % (default 85)
- Description:
-
duwarn
- Description:
- Set Disk usage warning in % (default 70)
- Description:
-
forcerepotype
- Description:
- Force a specific repo type rather than retrieving it from the repository configuration
- Description:
-
log
- Description:
- Log level. Order of Severity: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, PANIC (default "INFO")
- Description:
-
npmMD
- Description:
- Only download NPM Metadata
- Description:
-
queuemax
- Description:
- Max queue size before sleeping (default 75)
- Description:
-
random
- Description:
- Attempt to pull packages in random queue order
- Description:
-
repo (required)
- Description:
- Download Repository name
- Description:
-
reset
- Description:
- Reset creds file
- Description:
-
uapikey
- Description:
- Upstream repository API key or password
- Description:
-
url
- Description:
- Binary Manager URL
- Description:
-
user
- Description:
- Username
- Description:
-
uuser
- Description:
- Upstream repository Username
- Description:
-
v
- Description:
- Print the current version and exit
- Description:
-
values
- Description:
- Output stored values
- Description:
-
workers
- Description:
- Number of workers (default 50)
- Description:
-
workersleep
- Description:
- Worker sleep period in seconds (default 5)
- Description:
golang.org/x/crypto/ssh/terminal