Hello, I know some recent discussion where held in this list (I presume) on similar subject, but don't remember a solution. I have on a computer a working 15.0 install. I just (yesterday) install 15.1 on an other partition. is there a way to recover from the 15.0 a list of *main applications* (without libraries and dependencies) I could apply to the new 15.1? could be like the manually selected apps on 15.0, for example thanks jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 22/07/2019 08.14, jdd@dodin.org wrote:
Hello,
I know some recent discussion where held in this list (I presume) on similar subject, but don't remember a solution.
I have on a computer a working 15.0 install.
I just (yesterday) install 15.1 on an other partition.
is there a way to recover from the 15.0 a list of *main applications* (without libraries and dependencies) I could apply to the new 15.1?
I don't know how to obtain a list of applications only. Everything, yes.
could be like the manually selected apps on 15.0, for example
Manually selected, no. All applications, perhaps zypper can distinguish type application, dunno. No, it can't: Package Types Zypper works with several types of resource objects, called resolvables. A resolvable might be a package, patch, pattern, product; basically any kind of object with dependencies to other objects. ... application Legacy: Since libzypp-17.7.0 this type is no longer available. If you can get a list of applications somehow, then you could perhaps subtract from that list those installed by a certain pattern. The remainder would be manually installed, perhaps. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
Le 22/07/2019 à 11:56, Carlos E.R. a écrit :
If you can get a list of applications somehow, then you could perhaps subtract from that list those installed by a certain pattern. The remainder would be manually installed, perhaps.
the idea is that main apps name do not change (mostly), but dependencies, repos... can change :-( so no visible solution. thanks jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi,
Le 22/07/2019 à 11:56, Carlos E.R. a écrit :
If you can get a list of applications somehow, then you could perhaps subtract from that list those installed by a certain pattern. The remainder would be manually installed, perhaps.
the idea is that main apps name do not change (mostly), but dependencies, repos... can change :-(
so no visible solution.
why don't you copy 15.0 as a whole to the second partition, modify the repos to point to the 15.1 versions and run zypper dup?
thanks jdd
Bye. Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 22/07/2019 à 21:17, Michael Hirmke a écrit :
why don't you copy 15.0 as a whole to the second partition, modify the repos to point to the 15.1 versions and run zypper dup?
because I don't want to keep the 15.0 setups, only the apps with all the new stuff. I don't even need to keep the same repos if a product get moved usually I do this manually, adding product when needed, but sometime it's boring to stop an important stuff to keep script running (for example detox in not on official repos, ususally) for sure I could write it down when installing, but of course I'm always in a hurry and forget it jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Michael Hirmke <mh@mike.franken.de> [07-22-19 15:21]:
Hi,
Le 22/07/2019 à 11:56, Carlos E.R. a écrit :
If you can get a list of applications somehow, then you could perhaps subtract from that list those installed by a certain pattern. The remainder would be manually installed, perhaps.
the idea is that main apps name do not change (mostly), but dependencies, repos... can change :-(
so no visible solution.
why don't you copy 15.0 as a whole to the second partition, modify the repos to point to the 15.1 versions and run zypper dup?
and this works quite well. I have done it from 15.0 to 15.1 and from 15.1 to Tw w/o a problem -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri 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 composed on 2019-07-22 18:22 (UTC-0400):
* Michael Hirmke composed:
why don't you copy 15.0 as a whole to the second partition, modify the repos to point to the 15.1 versions and run zypper dup?
and this works quite well. I have done it from 15.0 to 15.1 and from 15.1 to Tw w/o a problem
Seriously well. It's how I do probably most distribution version upgrades much more easily than fresh installations and customizing, or offline upgrades. TW has made zypper excellent at duping. -- Evolution as taught in public schools is religion, not science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Mon, 22 Jul 2019, jdd@dodin.org wrote:
is there a way to recover from the 15.0 a list of *main applications* (without libraries and dependencies) I could apply to the new 15.1?
A chould be this: $ LC_ALL=C rpm -qf /usr/bin/* --qf '%{name}\t%{distribution}\n' | \ grep -v 'is not owned by any package' | sort -u > t.lst You might need to rework that list to replace the "distribution" by the name you locally use in your repos.d/*.conf (see zypper lr) and of course replace the repo-versions... Should be rather straightforward though, e.g.: $ awk -F'\t' -vOFS="\t" 'gsub("15.0","15.1",$2);' t.lst | tee t2.lst to replace specific reponames, just add them to the awk: $ awk -F'\t' -vOFS="\t" ' { gsub("15.0","15.1",$2); } $2 ~ /foo/ { $2 = "bar 15.1"; } $2 == "foo / openSUSE_15.1" { # note[1] $2 = "bar 15.1"; } ' t.lst | tee t2.lst [1] the 15.0 has been replaced before by the "gsub" on every line... You could even write a file for each repo to use[2] and then feed those files to # zypper --from $repo $(< ${repo}.lst ) [2] either directly from awk or filtering its output file as in awk -F'\t' '$2 == "foo" { print; }' t2.lst > foo.lst etc. Actually, that might be all you need: filter the rpm output t.lst in that way and write only the package-names to the $repo.lst: $ awk -F'\t' '$2 == "foo" { print $1; }' t.lst > foo.lst $ awk -F'\t' '$2 == "bar" { print $1; }' t.lst > bar.lst [.. work over the list and prune unwanted stuff ..] # zypper --from foo $(< foo.lst ) # zypper --from baz $(< bar.lst ) HTH, -dnh -- "You're one hundred percent positive that the ship which is crashed on the bottom of this ocean is the ship which you said you were one hundred percent positive could one hundred percent positively never crash? " -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Carlos E.R.
-
David Haller
-
Felix Miata
-
jdd@dodin.org
-
mh@mike.franken.de
-
Patrick Shanahan