...
This variant allows to download multiple packages using one or more repositories specified by the -r <debline>
option. The debian repository line must not contain components, which are taken from the release file of the repository if not explicitly specified.
An architecture must be speficied specified using the option -a <arch>
.
...
You may create a config file, which contains multiple package names and multiple repository lines.
Code Block | ||
---|---|---|
| ||
[deb] osgi-runner-2=deb https://deb.clazzes.org/any any-osgi-runner-2 osgi-3=deb https://deb.iteg.at/any any-osgi-3 myapp-2=deb http://deb.mycompany.com/any any-myapp-2 [options] arch=amd64 [osgi-main-packages] osgi-runner-server osgi-runner-client osgi-runner-osgi-bundle-activator osgi-runner-oracle12 osgi-runner-log4j2 osgi-runner-systemd osgi-bundles-common osgi-bundles-jdbc osgi-bundles-remoting osgi-bundles-pdfbox osgi-bundles-dojo osgi-bundles-dmutils osgi-bundles-login-adapter osgi-bundles-login-services osgi-bundles-fancymail-server [myapp-main-packages] myapp-bundles |
...
Code Block | ||
---|---|---|
| ||
pba-download -c deb-packages.conf |
YUM repositories
All-in-one cmdline
This variant allows to download multiple packages using one or more repositories specified by the -y <repourl>
option.
An architecture and a distro must be specified using the option -a <arch>
and -d <distro>
.
Code Block | ||
---|---|---|
| ||
$ pba-download -y http://rpm.clazzes.org/repos/fancyclibs-1/fancyclibs-1.repo -a x86_64 -d 7 fancylog-1 fancylog-1-devel
2018-07-04 22:46:41,236 INFO Loading yum repository from [http://rpm.clazzes.org/repos/fancyclibs-1/fancyclibs-1.repo]
2018-07-04 22:46:41,321 INFO Will try to fetch GPG key [file:///etc/pki/rpm-gpg/RPM-GPG-KEY-pba-builder-iteg-at] from URL [http://rpm.clazzes.org/gpg/RPM-GPG-KEY-pba-builder-iteg-at]
2018-07-04 22:46:41,322 INFO Successfully loaded yum repository with name [fancyclibs-1] and baseurl [http://rpm.clazzes.org/repos/fancyclibs-1/centos$releasever/$basearch/].
2018-07-04 22:46:41,323 INFO Loading URL [http://rpm.clazzes.org/repos/fancyclibs-1/centos7/x86_64/repodata/repomd.xml]...
2018-07-04 22:46:41,421 INFO Loaded repomd.xml with revision [1492005064] and [6] entries.
2018-07-04 22:46:41,422 INFO Open DB for yum repo [fancyclibs-1]
2018-07-04 22:46:41,422 INFO Loading URL [http://rpm.clazzes.org/repos/fancyclibs-1/centos7/x86_64/repodata/ca6a8999e22d71b589fd72d685a11135eab72318302beb9308d8eb02945f096f-primary.sqlite.bz2]...
2018-07-04 22:46:41,509 INFO Creating sqlite DB under [/tmp/tmpro0l6fgwpbadownload/primary_db]
2018-07-04 22:46:41,510 INFO Found package [fancylog-1] in repository [fancyclibs-1]
2018-07-04 22:46:41,511 INFO Loading URL [http://rpm.clazzes.org/repos/fancyclibs-1/centos7/x86_64/fancylog-1-1.0.3-1.x86_64.rpm]...
2018-07-04 22:46:41,610 INFO Saved file [fancylog-1-1.0.3-1.x86_64.rpm] with checksum [17531db46c7cf186451cc4647e5dbb391813c31e0ddd9caa8d2f53b4f63975f9]
2018-07-04 22:46:41,611 INFO Setting modification time of file [fancylog-1-1.0.3-1.x86_64.rpm] to [2017-04-12 13:51:01]
2018-07-04 22:46:41,612 INFO Found package [fancylog-1-devel] in repository [fancyclibs-1]
2018-07-04 22:46:41,613 INFO Loading URL [http://rpm.clazzes.org/repos/fancyclibs-1/centos7/x86_64/fancylog-1-devel-1.0.3-1.x86_64.rpm]...
2018-07-04 22:46:41,700 INFO Saved file [fancylog-1-devel-1.0.3-1.x86_64.rpm] with checksum [12bd5a9f0ab55ee8e968bcc01c6149b982f4cac56f2473d89f977d0b01e0f91d]
2018-07-04 22:46:41,701 INFO Setting modification time of file [fancylog-1-devel-1.0.3-1.x86_64.rpm] to [2017-04-12 13:51:01] |
Download using a config file
You may create a config file, which contains multiple package names and multiple YUM repository URL.
Code Block | ||
---|---|---|
| ||
[yum]
osgi-runner-2=https://rpm.clazzes.org/repos/osgi-runner-2/osgi-runner-2.repo
osgi-3=https://rpm.iteg.at/repos/osgi-3/osgi-3.repo
rsecm-2=http://rpm.pba.efkon.com/repos/rsecm-2/rsecm-2.repo
[options]
distro=7
arch=x86_64
[osgi-main-packages]
osgi-runner-server
osgi-runner-client
osgi-runner-osgi-bundle-activator
osgi-runner-oracle12
osgi-runner-log4j2
osgi-runner-systemd
osgi-bundles-common
osgi-bundles-jdbc
osgi-bundles-remoting
osgi-bundles-pdfbox
osgi-bundles-dojo
osgi-bundles-dmutils
osgi-bundles-login-adapter
osgi-bundles-login-services
osgi-bundles-fancymail-server
[myapp-main-packages]
myapp-bundles |
The packages are downloaded to two subdirectories, osgi-main
and myapp-main
, respectively.
Code Block | ||
---|---|---|
| ||
pba-download -c yum-packages.conf |