Mailinglist Archive: opensuse (621 mails)

< Previous Next >
Re: [opensuse] save installed packages for reinstall
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Sun, 9 Jun 2019 12:23:48 +0200 (CEST)
  • Message-id: <alpine.LSU.2.21.1906091217340.11087@Telcontar.valinor>
Hash: SHA1

On Sunday, 2019-06-09 at 05:10 -0500, David C. Rankin wrote:

On 06/09/2019 04:47 AM, Per Jessen wrote:
Carlos E. R. wrote:

There is a doubt about whether the command line buffer will take the
entire package list, I think there is a limit (64K?). Can a zypper
take input from a file directly?

if not, xargs will help you issue multiple zypper in, at optimal length.

Good catch and call from both Carlos and Per:

The limitation is an OS provided limitation on the character limit for the
command line. You can check with:

$ getconf ARG_MAX

Ah. Didn't know that.
At sometime in the past it was 64KB.

So there is a 2 Megabyte limit to your command line on 42.3. If you exceed
that than pass the list through xargs which will break up the command line
into subsets that do not exceed ARG_MAX.

Which may result in dependency hell. A switch to not verify dependencies would be needed, plus another run to solve pending dependencies later.

Given my install has a huge number of development libraries, matching -devel,
-debug and 32-bit packages installed and I only have 78K for all chars in all
package names, it would be hard to see how somebody could have 26X times more
packages installed than I do -- but who know??

The point is you should always check, e.g.

-rw-r--r-- 1 david david 78467 Jun 8 18:31 423install-name.txt

rpm -qa --queryformat "%{name}\n" | sort > installed_pkgs.txt

cer@Telcontar:~> l installed_pkgs.txt
- -rw-r--r-- 1 cer users 136554 Jun 9 12:17 installed_pkgs.txt

Way more than you, but still under the limit. Wait, we need to count the spaces. Ah, no, because new lines are removed.

- -- Cheers,
Carlos E. R.
(from openSUSE 15.0 x86_64 at Telcontar)



To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups