[opensuse] Install same packages?
Hello, on Debian/Ubuntu you can save the package list and install the same packages on an other PC or reinstall packages on a clean setup. This is helpful i.e. for reinstalling systems with backups. https://help.ubuntu.com/community/ReinstallingSamePackages Is there something similar in the RPM world? I already know "rpm -qa". But this is not perfect. A missing feature is, that I want to install the packages from the same repositories like on the source PC. Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Bjoern Voigt
Hello,
on Debian/Ubuntu you can save the package list and install the same packages on an other PC or reinstall packages on a clean setup. This is helpful i.e. for reinstalling systems with backups.
https://help.ubuntu.com/community/ReinstallingSamePackages
Is there something similar in the RPM world?
Open YaST2 and go to Software -> Software Management select "File" from the drop-down menu at the top of the window and use the export function. For the new or re-install you would import the saved file. I have never done this myself, but believe this should suffice. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Patrick Shanahan wrote:
* Bjoern Voigt [10-08-14 11:06]:
Hello,
on Debian/Ubuntu you can save the package list and install the same packages on an other PC or reinstall packages on a clean setup. This is helpful i.e. for reinstalling systems with backups.
https://help.ubuntu.com/community/ReinstallingSamePackages
Is there something similar in the RPM world? Open YaST2 and go to Software -> Software Management select "File" from the drop-down menu at the top of the window and use the export function.
For the new or re-install you would import the saved file.
I have never done this myself, but believe this should suffice. That you for this hint. It works like expected.
Unfortunately the Import function does not search packages in all available repositories. One example: I exported the package list on source system. The list contains "okteta" from KDE (repository KDE:Extra / KDE_Current_openSUSE_13.1): <entry kind="package" name="okteta" epoch="0" ver="4.14.1" rel="1.5" arch="x86_64"/> On target system I imported the package list. Yast installed "okteta", but from "openSUSE 13.1" repository in an older version. Source system: Name : okteta Version : 4.14.1 Distribution: KDE:Current / openSUSE_13.1 Target system: Name : okteta Version : 4.11.5 Distribution: openSUSE 13.1 Probably this can be seen as a bug or feature request. Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Bjoern Voigt
Patrick Shanahan wrote:
* Bjoern Voigt [10-08-14 11:06]:
Hello,
on Debian/Ubuntu you can save the package list and install the same packages on an other PC or reinstall packages on a clean setup. This is helpful i.e. for reinstalling systems with backups.
https://help.ubuntu.com/community/ReinstallingSamePackages
Is there something similar in the RPM world? Open YaST2 and go to Software -> Software Management select "File" from the drop-down menu at the top of the window and use the export function.
For the new or re-install you would import the saved file.
I have never done this myself, but believe this should suffice. That you for this hint. It works like expected.
Unfortunately the Import function does not search packages in all available repositories. One example:
I exported the package list on source system. The list contains "okteta" from KDE (repository KDE:Extra / KDE_Current_openSUSE_13.1):
<entry kind="package" name="okteta" epoch="0" ver="4.14.1" rel="1.5" arch="x86_64"/>
On target system I imported the package list. Yast installed "okteta", but from "openSUSE 13.1" repository in an older version.
Source system: Name : okteta Version : 4.14.1 Distribution: KDE:Current / openSUSE_13.1
Target system: Name : okteta Version : 4.11.5 Distribution: openSUSE 13.1
Probably this can be seen as a bug or feature request.
More likely, the expected repos do not exist on the target system. I would expect one would have to use yast to install the correct/expected repos before hand. It might be as simple as copying /etc/zypp/repos.d/* to the new system but I do not know if yast actually uses zypper repos. Someone more knowledgable here may jump in, please. I seldom use yast for installing software any more for quite some time. gud luk, -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Patrick Shanahan composed on 2014-10-08 22:42 (UTC-0400):
I do not know if yast actually uses zypper repos. Someone more knowledgable here may jump in, please. I seldom use yast for installing software any more for quite some time.
Outside of the installation process, I too for several years have been using YaST for software management rather little. However, I've also been maintaining the content in /etc/zypp/repos.d/ wholly manually for probably the whole of the same period. On my LAN server I touch each release's main repo files with the date of the applicable release, strip the redundancies from the names, capitalize first letters of most syllables, and sort the content of each repo file. Adding, deleting, activating or deactivating a repo here is almost always a matter of copying a file to repos.d/ from a web mirror or the LAN server, or deleting an existing one, then refreshing. I've been unable to notice either Zypper or YaST react in negative fashion to my repo actions, but YaST is certainly using the ones I keep in repos.d/ and none other. Once I've removed the installation source repo, and outside of the few times I've ever done a one-click package installation, it only shows the repo names I've provided. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) 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
Patrick Shanahan írta:
* Bjoern Voigt [10-08-14 15:02]:
Patrick Shanahan wrote:
* Bjoern Voigt [10-08-14 11:06]:
Hello,
on Debian/Ubuntu you can save the package list and install the same packages on an other PC or reinstall packages on a clean setup. This is helpful i.e. for reinstalling systems with backups.
https://help.ubuntu.com/community/ReinstallingSamePackages
Is there something similar in the RPM world? Open YaST2 and go to Software -> Software Management select "File" from the drop-down menu at the top of the window and use the export function.
For the new or re-install you would import the saved file.
I have never done this myself, but believe this should suffice. That you for this hint. It works like expected.
Unfortunately the Import function does not search packages in all available repositories. One example:
I exported the package list on source system. The list contains "okteta" from KDE (repository KDE:Extra / KDE_Current_openSUSE_13.1):
<entry kind="package" name="okteta" epoch="0" ver="4.14.1" rel="1.5" arch="x86_64"/>
On target system I imported the package list. Yast installed "okteta", but from "openSUSE 13.1" repository in an older version.
Source system: Name : okteta Version : 4.14.1 Distribution: KDE:Current / openSUSE_13.1
Target system: Name : okteta Version : 4.11.5 Distribution: openSUSE 13.1
Probably this can be seen as a bug or feature request.
More likely, the expected repos do not exist on the target system. I would expect one would have to use yast to install the correct/expected repos before hand. It might be as simple as copying /etc/zypp/repos.d/* to the new system but I do not know if yast actually uses zypper repos. Someone more knowledgable here may jump in, please. I seldom use yast for installing software any more for quite some time.
One can also use zypper to export the configured repos on the first system: zypper repos -e repofile see man zypper under Repository Management. On the other system the repos can be added from the file: zypper addrepo repofile See also: https://en.opensuse.org/SDB:Zypper_usage_12.2 Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-10-09 04:42, Patrick Shanahan wrote:
* Bjoern Voigt <> [10-08-14 15:02]:
Probably this can be seen as a bug or feature request.
Yes. Absolutely.
More likely, the expected repos do not exist on the target system. I would expect one would have to use yast to install the correct/expected repos before hand.
The package import feature should warn that it can not install the requested package versions because they are not available on the currently defined versions. Not only it imports the packages from the "wrong" repo, but on the wrong version. So, not a mirror install.
It might be as simple as copying /etc/zypp/repos.d/* to the new system but I do not know if yast actually uses zypper repos.
Yes, of course it does. Both yast and zypper use the same libraries and backends. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2014-10-08 17:40, Patrick Shanahan wrote:
* Bjoern Voigt <> [10-08-14 11:06]:
Hello,
on Debian/Ubuntu you can save the package list and install the same packages on an other PC or reinstall packages on a clean setup. This is helpful i.e. for reinstalling systems with backups.
https://help.ubuntu.com/community/ReinstallingSamePackages
Is there something similar in the RPM world?
No.
Open YaST2 and go to Software -> Software Management select "File" from the drop-down menu at the top of the window and use the export function.
For the new or re-install you would import the saved file.
I have never done this myself, but believe this should suffice.
It does not work, because it does not save repository information. The feature only only works right if you only have the default repos. And maybe not even then. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlQ2hjcACgkQtTMYHG2NR9UE4gCgisw1WpXPlSqwj55TnekcCJLD hDcAn2T+jMkI+yX31flE3teydwA/YO37 =XbTq -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
I have the same repositories on source and target systems. I copied them from source:/etc/zypp/repos.d to target:/etc/zypp/repos.d. I think, one of the main problems is, that YaST does not store repository information "user-packages.xml". With version information alone, it's not reliable to find the right repositories on the target system. The version numbers change to quickly. I will probably write a bug report about this topic soon. Björn Carlos E. R. wrote:
On 2014-10-08 17:40, Patrick Shanahan wrote:
* Bjoern Voigt <> [10-08-14 11:06]:
Hello,
on Debian/Ubuntu you can save the package list and install the same packages on an other PC or reinstall packages on a clean setup. This is helpful i.e. for reinstalling systems with backups.
https://help.ubuntu.com/community/ReinstallingSamePackages
Is there something similar in the RPM world?
No.
Open YaST2 and go to Software -> Software Management select "File" from the drop-down menu at the top of the window and use the export function.
For the new or re-install you would import the saved file.
I have never done this myself, but believe this should suffice.
It does not work, because it does not save repository information.
The feature only only works right if you only have the default repos. And maybe not even then.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Bjoern Voigt
-
Carlos E. R.
-
Carlos E. R.
-
Felix Miata
-
Istvan Gabor
-
Patrick Shanahan