In debian based systems once my system was set I’d do something like this to create a list of applications and be able to wipe-install base then reinstall my favorite apps and servers with one command. Is there a way to do this with zypper?
dpkg --get-selections | grep -v deinstall > installed-packages
Then, after reinstalling Kubuntu, you can use this list to reinstall those packages:
Code:
sudo apt-get update
sudo apt-get dist-upgrade
dpkg --set-selections < installed-packages
sudo dselect
Reinstall base system
Copy necessary files from backup - entire network directory copied back to /etc/, sources.list copied back to etc/apt/
Open network config window and enter encryption key. You now have internet access and the proper source.list to reinstall your packages.
I’ve done something similar in the past (replace “zypper dup” with “install from dvd”).
You can probably get smarter and get a list of the installed packages after the upgrade and to some shell magic to reduce the list of installed-packages but I think zypper is smart enough just to ignore already installed packages.
Thank you both when I get done rebuilding my install I’ll give this a try. Not intending to bork it again but its been my proven track record lately. SUSE is teaching me a lot. But a venture onto 11.4 milestone might be irresistible!
Doesn’t create new lines for each package, but I don’t see why that is needed. Always worked well for me.
Edit: Before one reinstalls a system like that, I recommend to run a systemwide update with the default repositories first, then reboot, then activate the repositories used on the old system, then install the remaining packages.
On 2010-09-04 02:36, sixonetonoffun wrote:
>
> In debian based systems once my system was set I’d do something like
> this to create a list of applications and be able to wipe-install base
> then reinstall my favorite apps and servers with one command. Is there a
> way to do this with zypper?
Not with zypper, but with YaST. It is called autoyast, it is used to replicate installations. It can
use a configuration file, very configurable. I haven’t used it personally, tough.
There is an option while installing to save an autoyast file precisely for this purpose. I think it
can do way more than simply installing a list of packages, I think it will do things like
partitioning and such automatically.
–
Cheers / Saludos,
Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)