[opensuse] zypper download a complete repo
Hi, i am searching the zypper manpage, but not finding / understanding it: (i do not often use zypper commandline) is there a syntax for only download a complete repo (all rpm's) or at least one rpm? -> i have a non browsable repo for closed source software (we pay for it). i like to store all rpm-files locally. to have the benefit to easily roll back if a new version is incompatible with our systems, or has a bug. (the repo only holds the newest versions.) something like: zypper --download-only [--dry-run] --from http://url * thanks in advance, simoN www.becherer.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 19/09/2018 11.11, Simon Becherer wrote:
Hi,
i am searching the zypper manpage, but not finding / understanding it: (i do not often use zypper commandline)
is there a syntax for only download a complete repo (all rpm's) or at least one rpm?
No. To download a repo or parts of it you use a normal file downloader of your choice or preference.
-> i have a non browsable repo for closed source software (we pay for it). i like to store all rpm-files locally. to have the benefit to easily roll back if a new version is incompatible with our systems, or has a bug. (the repo only holds the newest versions.)
something like:
zypper --download-only [--dry-run] --from http://url *
Ok. You first add the repo normally, then you tell zypper to only download a certain package(s) (install with download only option), which will be temporarily stored at a certain local directory. At that point you manually make a copy of that directory. /var/cache/zypp/packages/[Repo Alias] You can configure a repo to never delete those temporary copies, too. However, it is very easy for zypper to delete them without you knowing it is going to do so. Later you create a local repository from that copied directory. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi carlos, thanks for answer, but:
No. To download a repo or parts of it you use a normal file downloader of your choice or preference.
as have written : "non browsable" so, non browsable will not make it possible for me to get all the names of files they where there, except they are somewhere inside repo.xml which points to this repodata-files something like ....-primary.xml (and others) but without writing a script to extract the filenames i see no possibility to use a file downloader. / or a script using the output from "zypper search -s --repo reponame" and puzzle this output to download names together....
Ok. You first add the repo normally, then you tell zypper to only download a certain package(s) (install with download only option), which will be temporarily stored at a certain local directory. At that point you manually make a copy of that directory.
i tried: zypper install -f --download-only --dry-run --repo name-of-repo * BUT 1) the "*" will not interpretet as it should, (in my opinion) it will try to download names found at the actual working directory 2) i think it will also not use only that repo i gave with --repo 3) if i change to: zypper install -f --download-only --dry-run --repo name-of-repo hell* it interprets the "*" correct and start to only download all (actual) packages starting with "hell", but NOT older packages starting with "hell" 4) the --dry-run option is ignored (it will really download) files 5) second attemp i tried: zypper download --dry-run --all-matches hell* will download all versions of "hell*" but i do not know to specify the repo here, and also only "*" did gave me some "stupid"? results. :-(((( simoN www.becherer.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Simon Becherer wrote:
No. To download a repo or parts of it you use a normal file downloader of your choice or preference.
as have written : "non browsable"
so, non browsable will not make it possible for me to get all the names of files they where there, except they are somewhere inside repo.xml which points to this repodata-files something like ....-primary.xml (and others) but without writing a script to extract the filenames i see no possibility to use a file downloader.
Yep, I would agree.
i tried: zypper install -f --download-only --dry-run --repo name-of-repo *
BUT 1) the "*" will not interpretet as it should, (in my opinion) it will try to download names found at the actual working directory
Correct, that's the shell expanding the wildcard. Escape it with a backslash to stop that = '\*' -- Per Jessen, Zürich (19.2°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi per,
Correct, that's the shell expanding the wildcard. Escape it with a backslash to stop that = '\*'
thanks, i have never understood all this bash script functions with \ ' " ` () (()) [] [[]] its always a miracle for me why one or the other will work, and last weekend exact the same if thrn with () in one of my own scripts where working and in one other of my own scripts not... both with same variables... not inside a function or something else only a "if then". one are working, one not..... i really do not understand shellscript-logic. up to now i have not found a really good tutorial in my mother language german and in english i am lacking of some important words so i understand only partly. :-((((((((( zypper -v install -f --download-only --dry-run --from name-of-repo \* so, this works, except it will not make a dry-run, and it tests the depency's (what for a download only is not good) and it only loads the newest packages down. for this a solution with the "download" command would be better, if there is a possibility to specify the repo to be used: zypper download --dry-run --all-matches \* (this will end in a dry-run with a HUGE amount of data....) simoN Am 20.09.2018 um 10:12 schrieb Per Jessen:
Simon Becherer wrote:
No. To download a repo or parts of it you use a normal file downloader of your choice or preference.
as have written : "non browsable"
so, non browsable will not make it possible for me to get all the names of files they where there, except they are somewhere inside repo.xml which points to this repodata-files something like ....-primary.xml (and others) but without writing a script to extract the filenames i see no possibility to use a file downloader.
Yep, I would agree.
i tried: zypper install -f --download-only --dry-run --repo name-of-repo *
BUT 1) the "*" will not interpretet as it should, (in my opinion) it will try to download names found at the actual working directory
Correct, that's the shell expanding the wildcard. Escape it with a backslash to stop that = '\*'
-- www.becherer.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 20/09/2018 02.55, Simon Becherer wrote:
Hi carlos,
Ok. You first add the repo normally, then you tell zypper to only download a certain package(s) (install with download only option), which will be temporarily stored at a certain local directory. At that point you manually make a copy of that directory.
i tried: zypper install -f --download-only --dry-run --repo name-of-repo *
BUT 1) the "*" will not interpretet as it should, (in my opinion) it will try to download names found at the actual working directory 2) i think it will also not use only that repo i gave with --repo 3) if i change to:
Ideas: Get the list of rpms there, including all versions if possible, by using "zypper se" or something similar. Then script the calls to issue several zypper calls to install (--download_only, not dry run) each version. Yes, zypper will do checks on them. Maybe try --force. But do one file at a time to avoid conflicts. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))
Hi carlos, yes, will do something like this. only for record: if using the command zypper download ... and NOT zypper install --download-only ... it will NOT check for conflicts. but the best solution would be to tell zypper to the download COMMAND (not the download-only option) some other options like tell him not useing the standart repo structure of the installed system by pointing him to another directory structure or something like this and have inside that directory only one repo file instead of all the repos in var/cache/zypp maybe therefore point to another zypper configuration file or changing some sytem vaiables used by zypper... but for this i have no idea how to do. was hoping one of the "heavy zypper" users here did know how.... simoN Am 20.09.2018 um 16:39 schrieb Carlos E. R.:
On 20/09/2018 02.55, Simon Becherer wrote:
Hi carlos,
Ok. You first add the repo normally, then you tell zypper to only download a certain package(s) (install with download only option), which will be temporarily stored at a certain local directory. At that point you manually make a copy of that directory.
i tried: zypper install -f --download-only --dry-run --repo name-of-repo *
BUT 1) the "*" will not interpretet as it should, (in my opinion) it will try to download names found at the actual working directory 2) i think it will also not use only that repo i gave with --repo 3) if i change to:
Ideas:
Get the list of rpms there, including all versions if possible, by using "zypper se" or something similar. Then script the calls to issue several zypper calls to install (--download_only, not dry run) each version.
Yes, zypper will do checks on them. Maybe try --force. But do one file at a time to avoid conflicts.
-- www.becherer.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, 20 Sep 2018 18:15:13 +0200 Simon Becherer <simon@becherer.de> wrote:
but the best solution would be to tell zypper to the download COMMAND (not the download-only option) some other options like tell him not useing the standart repo structure of the installed system by pointing him to another directory structure or something like this and have inside that directory only one repo file instead of all the repos in var/cache/zypp maybe therefore point to another zypper configuration file or changing some sytem vaiables used by zypper...
but for this i have no idea how to do. was hoping one of the "heavy zypper" users here did know how....
simoN
I'm no zypper expert, but have you read the man page? It talks about how to override the standard configuration files. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 20/09/2018 12.15, Simon Becherer wrote:
Hi carlos,
yes, will do something like this.
only for record: if using the command zypper download ... and NOT zypper install --download-only ...
it will NOT check for conflicts.
But there is no "zypper download" command, to my knowledge. I looked at "man" and did not find it.
but the best solution would be to tell zypper to the download COMMAND (not the download-only option) some other options like tell him not useing the standart repo structure of the installed system by pointing him to another directory structure or something like this and have inside that directory only one repo file instead of all the repos in var/cache/zypp maybe therefore point to another zypper configuration file or changing some sytem vaiables used by zypper...
but for this i have no idea how to do. was hoping one of the "heavy zypper" users here did know how....
Yes, you can point zypper to install in another directory structure, say to install running a Linux system into another system. But that other directory structure may need a corresponding database of what is installed. Look at "--root" and other 3 options close to it in the manual. The last one is particularly interesting in your case: -R, --root dir Operates on a different root directory. This option influences the location of the repos.d directory and the metadata cache directory and also causes rpm to be run with the --root option to do the actual installation or removal of packages. See also the FILES section. --installroot dir Behaves like --root but shares the repositories with the host system. --disable-system-resolvables This option serves mainly for testing purposes. It will cause zypper to act as if there were no packages installed in the system. Use with caution as you can damage your system using this option. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))
* Carlos E. R. <robin.listas@gmx.es> [09-22-18 22:54]:
On 20/09/2018 12.15, Simon Becherer wrote:
Hi carlos,
yes, will do something like this.
only for record: if using the command zypper download ... and NOT zypper install --download-only ...
it will NOT check for conflicts.
But there is no "zypper download" command, to my knowledge. I looked at "man" and did not find it.
better look again, but it is "--download-only" or "-d". -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 23/09/2018 07.43, Patrick Shanahan wrote:
* Carlos E. R. <robin.listas@gmx.es> [09-22-18 22:54]:
On 20/09/2018 12.15, Simon Becherer wrote:
Hi carlos,
yes, will do something like this.
only for record: if using the command zypper download ... and NOT zypper install --download-only ...
it will NOT check for conflicts.
But there is no "zypper download" command, to my knowledge. I looked at "man" and did not find it.
better look again, but it is "--download-only" or "-d".
No. That's an option, not a command. It modifies a given command, but it is not a command on itself. You can not do "zypper -d package" or repo. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))
* Carlos E. R. <robin.listas@gmx.es> [09-23-18 09:53]:
On 23/09/2018 07.43, Patrick Shanahan wrote:
* Carlos E. R. <robin.listas@gmx.es> [09-22-18 22:54]:
On 20/09/2018 12.15, Simon Becherer wrote:
Hi carlos,
yes, will do something like this.
only for record: if using the command zypper download ... and NOT zypper install --download-only ...
it will NOT check for conflicts.
But there is no "zypper download" command, to my knowledge. I looked at "man" and did not find it.
better look again, but it is "--download-only" or "-d".
No. That's an option, not a command. It modifies a given command, but it is not a command on itself.
You can not do "zypper -d package" or repo.
no but you can do: zypper -v --no-r -d <package> and accomplish the same. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 23/09/2018 10.09, Patrick Shanahan wrote:
* Carlos E. R. <> [09-23-18 09:53]:
On 23/09/2018 07.43, Patrick Shanahan wrote:
* Carlos E. R. <> [09-22-18 22:54]:
On 20/09/2018 12.15, Simon Becherer wrote:
Hi carlos,
yes, will do something like this.
only for record: if using the command zypper download ... and NOT zypper install --download-only ...
it will NOT check for conflicts.
But there is no "zypper download" command, to my knowledge. I looked at "man" and did not find it.
better look again, but it is "--download-only" or "-d".
No. That's an option, not a command. It modifies a given command, but it is not a command on itself.
You can not do "zypper -d package" or repo.
no but you can do: zypper -v --no-r -d <package>
and accomplish the same.
Are you sure? there is no command. Legolas:~ # zypper -v --no-r -d koldi Unknown option '-d' Legolas:~ # -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))
* Carlos E. R. <robin.listas@gmx.es> [09-23-18 10:55]:
On 23/09/2018 10.09, Patrick Shanahan wrote:
* Carlos E. R. <> [09-23-18 09:53]:
On 23/09/2018 07.43, Patrick Shanahan wrote:
* Carlos E. R. <> [09-22-18 22:54]:
On 20/09/2018 12.15, Simon Becherer wrote:
Hi carlos,
yes, will do something like this.
only for record: if using the command zypper download ... and NOT zypper install --download-only ...
it will NOT check for conflicts.
But there is no "zypper download" command, to my knowledge. I looked at "man" and did not find it.
better look again, but it is "--download-only" or "-d".
No. That's an option, not a command. It modifies a given command, but it is not a command on itself.
You can not do "zypper -d package" or repo.
no but you can do: zypper -v --no-r -d <package>
and accomplish the same.
Are you sure? there is no command.
Legolas:~ # zypper -v --no-r -d koldi Unknown option '-d' Legolas:~ #
yes, needs "dup" zypper -v dup --no-r -d <package> or zypper -v up -d <package> I routinely use zypper ref && zypper -v dup --no-r --no-allow-v -d && zypper -v dup --no-r --no-allow-v thats one line, probably will wrap -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Patrick Shanahan <paka@opensuse.org> [09-23-18 11:05]:
* Carlos E. R. <robin.listas@gmx.es> [09-23-18 10:55]:
On 23/09/2018 10.09, Patrick Shanahan wrote:
* Carlos E. R. <> [09-23-18 09:53]:
On 23/09/2018 07.43, Patrick Shanahan wrote:
* Carlos E. R. <> [09-22-18 22:54]:
On 20/09/2018 12.15, Simon Becherer wrote: > Hi carlos, > > yes, will do something like this. > > only for record: if using the command > zypper download ... > and NOT > zypper install --download-only ... > > it will NOT check for conflicts.
But there is no "zypper download" command, to my knowledge. I looked at "man" and did not find it.
better look again, but it is "--download-only" or "-d".
No. That's an option, not a command. It modifies a given command, but it is not a command on itself.
You can not do "zypper -d package" or repo.
no but you can do: zypper -v --no-r -d <package>
and accomplish the same.
Are you sure? there is no command.
Legolas:~ # zypper -v --no-r -d koldi Unknown option '-d' Legolas:~ #
yes, needs "dup" zypper -v dup --no-r -d <package> or zypper -v up -d <package>
I routinely use zypper ref && zypper -v dup --no-r --no-allow-v -d && zypper -v dup --no-r --no-allow-v
thats one line, probably will wrap
zypper -v dup --help zypper -v up --help -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 23/09/2018 11.05, Patrick Shanahan wrote:
* Patrick Shanahan <paka@opensuse.org> [09-23-18 11:05]:
* Carlos E. R. <robin.listas@gmx.es> [09-23-18 10:55]:
On 23/09/2018 10.09, Patrick Shanahan wrote:
* Carlos E. R. <> [09-23-18 09:53]:
On 23/09/2018 07.43, Patrick Shanahan wrote:
* Carlos E. R. <> [09-22-18 22:54]: > On 20/09/2018 12.15, Simon Becherer wrote: >> Hi carlos, >> >> yes, will do something like this. >> >> only for record: if using the command >> zypper download ... >> and NOT >> zypper install --download-only ... >> >> it will NOT check for conflicts. > > But there is no "zypper download" command, to my knowledge. I looked at > "man" and did not find it.
better look again, but it is "--download-only" or "-d".
No. That's an option, not a command. It modifies a given command, but it is not a command on itself.
You can not do "zypper -d package" or repo.
no but you can do: zypper -v --no-r -d <package>
and accomplish the same.
Are you sure? there is no command.
Legolas:~ # zypper -v --no-r -d koldi Unknown option '-d' Legolas:~ #
yes, needs "dup" zypper -v dup --no-r -d <package> or zypper -v up -d <package>
I routinely use zypper ref && zypper -v dup --no-r --no-allow-v -d && zypper -v dup --no-r --no-allow-v
thats one line, probably will wrap
zypper -v dup --help zypper -v up --help
Yes, but remember that the intent here is to download packages that are not related to any install or update, from a particular repo. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))
* Carlos E. R. <robin.listas@gmx.es> [09-23-18 11:29]:
On 23/09/2018 11.05, Patrick Shanahan wrote:
* Patrick Shanahan <paka@opensuse.org> [09-23-18 11:05]:
* Carlos E. R. <robin.listas@gmx.es> [09-23-18 10:55]:
On 23/09/2018 10.09, Patrick Shanahan wrote:
* Carlos E. R. <> [09-23-18 09:53]:
On 23/09/2018 07.43, Patrick Shanahan wrote: > * Carlos E. R. <> [09-22-18 22:54]: >> On 20/09/2018 12.15, Simon Becherer wrote: >>> Hi carlos, >>> >>> yes, will do something like this. >>> >>> only for record: if using the command >>> zypper download ... >>> and NOT >>> zypper install --download-only ... >>> >>> it will NOT check for conflicts. >> >> But there is no "zypper download" command, to my knowledge. I looked at >> "man" and did not find it. > > better look again, but it is "--download-only" or "-d".
No. That's an option, not a command. It modifies a given command, but it is not a command on itself.
You can not do "zypper -d package" or repo.
no but you can do: zypper -v --no-r -d <package>
and accomplish the same.
Are you sure? there is no command.
Legolas:~ # zypper -v --no-r -d koldi Unknown option '-d' Legolas:~ #
yes, needs "dup" zypper -v dup --no-r -d <package> or zypper -v up -d <package>
I routinely use zypper ref && zypper -v dup --no-r --no-allow-v -d && zypper -v dup --no-r --no-allow-v
thats one line, probably will wrap
zypper -v dup --help zypper -v up --help
Yes, but remember that the intent here is to download packages that are not related to any install or update, from a particular repo.
zypper -v in -d `zypper se -s -r <repo>` -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Patrick Shanahan <paka@opensuse.org> [09-23-18 11:38]:
* Carlos E. R. <robin.listas@gmx.es> [09-23-18 11:29]:
On 23/09/2018 11.05, Patrick Shanahan wrote:
* Patrick Shanahan <paka@opensuse.org> [09-23-18 11:05]:
* Carlos E. R. <robin.listas@gmx.es> [09-23-18 10:55]:
On 23/09/2018 10.09, Patrick Shanahan wrote:
* Carlos E. R. <> [09-23-18 09:53]: > On 23/09/2018 07.43, Patrick Shanahan wrote: >> * Carlos E. R. <> [09-22-18 22:54]: >>> On 20/09/2018 12.15, Simon Becherer wrote: >>>> Hi carlos, >>>> >>>> yes, will do something like this. >>>> >>>> only for record: if using the command >>>> zypper download ... >>>> and NOT >>>> zypper install --download-only ... >>>> >>>> it will NOT check for conflicts. >>> >>> But there is no "zypper download" command, to my knowledge. I looked at >>> "man" and did not find it. >> >> better look again, but it is "--download-only" or "-d". > > No. That's an option, not a command. It modifies a given command, but it > is not a command on itself. > > You can not do "zypper -d package" or repo.
no but you can do: zypper -v --no-r -d <package>
and accomplish the same.
Are you sure? there is no command.
Legolas:~ # zypper -v --no-r -d koldi Unknown option '-d' Legolas:~ #
yes, needs "dup" zypper -v dup --no-r -d <package> or zypper -v up -d <package>
I routinely use zypper ref && zypper -v dup --no-r --no-allow-v -d && zypper -v dup --no-r --no-allow-v
thats one line, probably will wrap
zypper -v dup --help zypper -v up --help
Yes, but remember that the intent here is to download packages that are not related to any install or update, from a particular repo.
zypper -v in -d `zypper se -s -r <repo>`
might want to add a "grep x86_64" or .. inside the search instance -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Patrick Shanahan <paka@opensuse.org> [09-23-18 11:39]:
* Patrick Shanahan <paka@opensuse.org> [09-23-18 11:38]:
* Carlos E. R. <robin.listas@gmx.es> [09-23-18 11:29]:
On 23/09/2018 11.05, Patrick Shanahan wrote:
* Patrick Shanahan <paka@opensuse.org> [09-23-18 11:05]:
* Carlos E. R. <robin.listas@gmx.es> [09-23-18 10:55]:
On 23/09/2018 10.09, Patrick Shanahan wrote: > * Carlos E. R. <> [09-23-18 09:53]: >> On 23/09/2018 07.43, Patrick Shanahan wrote: >>> * Carlos E. R. <> [09-22-18 22:54]: >>>> On 20/09/2018 12.15, Simon Becherer wrote: >>>>> Hi carlos, >>>>> >>>>> yes, will do something like this. >>>>> >>>>> only for record: if using the command >>>>> zypper download ... >>>>> and NOT >>>>> zypper install --download-only ... >>>>> >>>>> it will NOT check for conflicts. >>>> >>>> But there is no "zypper download" command, to my knowledge. I looked at >>>> "man" and did not find it. >>> >>> better look again, but it is "--download-only" or "-d". >> >> No. That's an option, not a command. It modifies a given command, but it >> is not a command on itself. >> >> You can not do "zypper -d package" or repo. > > no but you can do: zypper -v --no-r -d <package> > > and accomplish the same.
Are you sure? there is no command.
Legolas:~ # zypper -v --no-r -d koldi Unknown option '-d' Legolas:~ #
yes, needs "dup" zypper -v dup --no-r -d <package> or zypper -v up -d <package>
I routinely use zypper ref && zypper -v dup --no-r --no-allow-v -d && zypper -v dup --no-r --no-allow-v
thats one line, probably will wrap
zypper -v dup --help zypper -v up --help
Yes, but remember that the intent here is to download packages that are not related to any install or update, from a particular repo.
zypper -v in -d `zypper se -s -r <repo>`
might want to add a "grep x86_64" or .. inside the search instance
this would also require directing zypper's cache to an unused location. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
You can not do "zypper -d package" or repo.
but you can do: zypper download --dry-run --all-matches screen* but maybe i have not correct understand, up to now, i am not able to make a new envioremt onyl for this zypper command to gave him only one special repo. simoN -- www.becherer.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 23/09/2018 13.50, Simon Becherer wrote:
but you can do:
zypper download --dry-run --all-matches screen*
but maybe i have not correct understand, up to now, i am not able to make a new envioremt onyl for this zypper command to gave him only one special repo.
You can get the list of packages in the repo using YaST, so there must be another zypper command concoction that lists the packages in the repo. Maybe: zypper se --repo name --details Only that it doesn't create the exact rpm file names.
cer@Legolas:~> zypper se --repo OBS_Emulators_Wine --details | head Loading repository data... Reading installed packages...
S | Name | Type | Version | Arch | Repository ---+-----------------------------------------+------------+-------------------------------------------+--------+--------------------- | dynamite | package | 0.1.1-lp150.1.1 | x86_64 | OBS: Emulators: Wine | dynamite | srcpackage | 0.1.1-lp150.1.1 | noarch | OBS: Emulators: Wine | dynamite-debuginfo | package | 0.1.1-lp150.1.1 | x86_64 | OBS: Emulators: Wine | dynamite-debugsource | package | 0.1.1-lp150.1.1 | x86_64 | OBS: Emulators: Wine v | gettext-runtime | package | 0.19.8.1-lp150.12.1 | x86_64 | OBS: Emulators: Wine cer@Legolas:~>
cer@Legolas:~> zypper download --all-matches --pkg-cache-dir ~/tmp/packages dynamite Unknown option '--pkg-cache-dir' cer@Legolas:~> zypper --pkg-cache-dir ~/tmp/packages download --all-matches dynamite Loading repository data... Reading installed packages... No prune to best version. (--all-matches) Retrieving package dynamite-0.1.1-lp150.1.1.x86_64 (1/1), 11.5 KiB ( 12.1 KiB unpacked) (1/1) /home/cer/tmp/packages/OBS_Emulators_Wine/x86_64/dynamite-0.1.1-lp150.1.1.x86_64.rpm ...................[done]
download: Done. cer@Legolas:~>
cer@Legolas:~> ls tmp/packages/ OBS_Emulators_Wine cer@Legolas:~> ls tmp/packages/OBS_Emulators_Wine/ x86_64 cer@Legolas:~> tree tmp/packages/ tmp/packages/ └── OBS_Emulators_Wine └── x86_64 └── dynamite-0.1.1-lp150.1.1.x86_64.rpm
2 directories, 1 file cer@Legolas:~>
:-))) -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))
Am 23.09.18 um 04:52 schrieb Carlos E. R.:
But there is no "zypper download" command, to my knowledge. I looked at "man" and did not find it.
i do not agree, there is a download command: zypper -h download will show the syntax. (and its also in the manpage, i found it there) zypper --version zypper 1.14.8 simoN -- www.becherer.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 23/09/2018 13.47, Simon Becherer wrote:
Am 23.09.18 um 04:52 schrieb Carlos E. R.:
But there is no "zypper download" command, to my knowledge. I looked at "man" and did not find it.
i do not agree, there is a download command:
zypper -h download
will show the syntax. (and its also in the manpage, i found it there)
zypper --version zypper 1.14.8
Oh. I sccanned man page, did not see it. But it does run, it certainly exists. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))
Am 19.09.2018 um 17:11 schrieb Simon Becherer:
zypper --download-only [--dry-run] --from http://url *
If it is really http you could try wget, for example: wget -A rpm -m -p -E -np -e robots=off [URL] should download all rmps including subdirectories of that URL. Cheerz, Lars
Am 20.09.2018 um 11:17 schrieb Lars Behrens:
Am 19.09.2018 um 17:11 schrieb Simon Becherer:
zypper --download-only [--dry-run] --from http://url *
If it is really http you could try wget, for example:
yes i think it is, at least it starts with http.....
wget -A rpm -m -p -E -np -e robots=off [URL]
should download all rmps including subdirectories of that URL.
2018-09-20 11:37:14 FEHLER 403: Forbidden (i think because not browsable) simoN
Cheerz, Lars
-- www.becherer.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
20.09.2018 12:17, Lars Behrens пишет:
Am 19.09.2018 um 17:11 schrieb Simon Becherer:
zypper --download-only [--dry-run] --from http://url *
If it is really http you could try wget, for example:
wget -A rpm -m -p -E -np -e robots=off [URL]
should download all rmps including subdirectories of that URL.
It won't work if URL is not browseable. Where shold wget get file names from? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 19 Sep 2018 17:11:31 +0200 Simon Becherer <simon@becherer.de> wrote:
is there a syntax for only download a complete repo (all rpm's) or at least one rpm?
-> i have a non browsable repo for closed source software (we pay for it). i like to store all rpm-files locally. to have the benefit to easily roll back if a new version is incompatible with our systems, or has a bug. (the repo only holds the newest versions.)
Have you asked for support from the commercial organization that you pay for this facility? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 20.09.2018 um 13:17 schrieb Dave Howorth:
Have you asked for support from the commercial organization that you pay for this facility?
small commercial company seems to me only a hand full people. we work with there software since about 2005? or so. they "official" do not (any more) support opensuse)/tumbleweed, "unofficial" they do.... official only always newest ubuntu. but they still provide rpm's (compiled somehow with ubuntu) and helped me always if something was not running. the last half a year, i do not getting the right person at the phone, maybe company internals changed, so better are local stored updates to not run suddenly into a big problem. simoN -- www.becherer.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Op woensdag 19 september 2018 17:11:31 CEST schreef Simon Becherer:
Hi,
i am searching the zypper manpage, but not finding / understanding it: (i do not often use zypper commandline)
is there a syntax for only download a complete repo (all rpm's) or at least one rpm?
-> i have a non browsable repo for closed source software (we pay for it). i like to store all rpm-files locally. to have the benefit to easily roll back if a new version is incompatible with our systems, or has a bug. (the repo only holds the newest versions.)
something like:
zypper --download-only [--dry-run] --from http://url *
thanks in advance,
simoN
www.becherer.de I'd go another path: rsync f.e. the x86_64, the i586, the noarch folders to /path/to/local/repo . Install 'createrepo' and do createrepo /path/to/local/repo zypper addrepo -f <path/to/local/repo> <repository name>
-- Gertjan Lettink a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi,
I'd go another path: rsync f.e. the x86_64, the i586, the noarch folders to /path/to/local/repo . Install 'createrepo' and do createrepo /path/to/local/repo zypper addrepo -f <path/to/local/repo> <repository name>
mh, maybe i do not understand, what is the goal of this? what i understand is, this will add a second repo of the already installed repo to the complete system? could you explain? -> after i have downloaded the rpm-files of course i will (i have already) a local repo generated with createrepo. but for this first i have to download the files to make sure they will not disappear on the server. simoN www.becherer.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Op donderdag 20 september 2018 20:01:42 CEST schreef Simon Becherer:
Hi,
I'd go another path: rsync f.e. the x86_64, the i586, the noarch folders to /path/to/local/repo . Install 'createrepo' and do createrepo /path/to/local/repo zypper addrepo -f <path/to/local/repo> <repository name>
mh, maybe i do not understand, what is the goal of this?
what i understand is, this will add a second repo of the already installed repo to the complete system? could you explain?
-> after i have downloaded the rpm-files of course i will (i have already) a local repo generated with createrepo. but for this first i have to download the files to make sure they will not disappear on the server.
simoN
www.becherer.de Ah, OK. Then I misunderstood.
-- Gertjan Lettink a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 20/09/2018 13.38, Knurpht-openSUSE wrote:
Op woensdag 19 september 2018 17:11:31 CEST schreef Simon Becherer:
I'd go another path: rsync f.e. the x86_64, the i586, the noarch folders to /path/to/local/repo .
But the repo is not browsable, rsync will fail. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))
On 9/19/18 5:11 PM, Simon Becherer wrote:
Hi,
i am searching the zypper manpage, but not finding / understanding it: (i do not often use zypper commandline)
is there a syntax for only download a complete repo (all rpm's) or at least one rpm?
-> i have a non browsable repo for closed source software (we pay for it). i like to store all rpm-files locally. to have the benefit to easily roll back if a new version is incompatible with our systems, or has a bug. (the repo only holds the newest versions.)
something like:
zypper --download-only [--dry-run] --from http://url *
You can either search the repo and then build the download urls yourself: zypper -x search -s -r your_reponame The -x gives you xml output which you may pipe through xmlstarlet or xml_grep or... to find out package names, versions and architecture. Easier for downloading is zypper download --all-matches "*" but this will download from all repos. You should probably temporary disable other repos. And i'm not sure if it will download old versions. Use --pkg-cache-dir to store rpms in another location.
participants (9)
-
Andrei Borzenkov
-
Carlos E. R.
-
Dave Howorth
-
Florian Gleixner
-
Knurpht-openSUSE
-
Lars Behrens
-
Patrick Shanahan
-
Per Jessen
-
Simon Becherer