Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Keeping all my installed packages?

  1. #1

    Default Keeping all my installed packages?

    With the upcoming 11.2 release, this is something I'd like to know.
    I have two machines, desktop and laptop. The laptop is 32-bit, so I can keep my current packages and config while upgrading to 11.2 by doing a zypper dup...


    but my desktop is 32 bit and I want to upgrade to 64-bit (it is capable).
    I was told I need to do a clean install , so I plan to back up my /etc/ and my home dir, but how can I keep a list of all packages installed, and have yast re-install them later?

    Thanks!

  2. #2
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: Keeping all my installed packages?

    I've been thinking about this too. I have so many tweaks, scripts and applications installed that it's going to take me at least a week to get things back after a clean install.

    I think there isn't much you can do except as you've already stated, copy the /etc and /home directories.

    As for the applications, I assume that after installing them again you can just copy over the appropriate folder from the saved old /home directory to transfer all your settings.

    I've tried to be disciplined in the beginning and recorded any new scripts I created or any changes I made to scripts in a separate file so hopefully I can just recreate those changes and additions. I'm sure a few changes slipped through the net though.

    I read somewhere on here about a member that puts everything into a separate directory and creates soft links to them from the /home folder or something. Won't help now but maybe worth looking into to make future reinstalls easier.
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  3. #3
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,349
    Blog Entries
    15

    Default Re: Keeping all my installed packages?

    Quote Originally Posted by suse tpx60s
    I've been thinking about this too. I have so many tweaks, scripts and
    applications installed that it's going to take me at least a week to get
    things back after a clean install.

    I think there isn't much you can do except as you've already stated,
    copy the /etc and /home directories.

    As for the applications, I assume that after installing them again you
    can just copy over the appropriate folder from the saved old /home
    directory to transfer all your settings.

    I've tried to be disciplined in the beginning and recorded any new
    scripts I created or any changes I made to scripts in a separate file so
    hopefully I can just recreate those changes and additions. I'm sure a
    few changes slipped through the net though.

    I read somewhere on here about a member that puts everything into a
    separate directory and creates soft links to them from the /home folder
    or something. Won't help now but maybe worth looking into to make future
    reinstalls easier.
    Hi
    Yes, that's what I do You can also install the application
    called suse-sam which is a support analysis tool. I produces a series
    of reports on your syste, including all installed rpms and where they
    were installed from.

    Run it as root, then you can open the html report in a browser.

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
    up 18 days 19:42, 3 users, load average: 0.06, 0.06, 0.02
    GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18


  4. #4
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: Keeping all my installed packages?

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Yes, that's what I do You can also install the application
    called suse-sam
    OK, can you provide an example of how you set up your links? Also I installed suse-sam and ran it happily, as root from the cli, it scrolls away but then just it seems to just stop once it gets to the suse-sam rpm. where is the report placed?
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,349
    Blog Entries
    15

    Default Re: Keeping all my installed packages?

    Quote Originally Posted by suse tpx60s
    malcolmlewis;2056765 Wrote:
    > Hi
    > Yes, that's what I do You can also install the application
    > called suse-sam

    OK, can you provide an example of how you set up your links? Also I
    installed suse-sam and ran it happily, as root from the cli, it scrolls
    away but then just it seems to just stop once it gets to the suse-sam
    rpm. where is the report placed?
    Hi
    Here's my one for the netbook, I can just run it after an install.
    Code:
    #!/bin/bash
    cd ~/
    rm .bashrc .profile
    rm -rf bin
    rm -rf .icons
    rm -rf .mozilla
    ln -s /data/malcolml/configuration/bashrc .bashrc
    ln -s /data/malcolml/configuration/profile .profile
    ln -s /data/malcolml/configuration/bin bin
    ln -s /data/malcolml/configuration/mozilla .mozilla
    ln -s /data/malcolml/configuration/icons .icons
    ln -s /data/malcolml/configuration/signature .signature
    ln -s /data/malcolml/configuration/wallpapers wallpapers
    ln -s /data/malcolml/configuration/claws-mail .claws-mail
    ln -s /data/malcolml/configuration/Local_Mail Local\ Mail
    ln -s /data/malcolml/configuration/gkrellm2 .gkrellm2
    On this system for root I have some customized configs eg lm_sensors,
    hddtemp etc that use the same linking.

    The command to run is sam (eg sudo sam)? It takes sometime to finish,
    then it produces sam-<date:time>.html, .log, .report and .xml in the
    directory you ran it.

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
    up 18 days 21:15, 3 users, load average: 0.10, 0.07, 0.02
    GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18


  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,349
    Blog Entries
    15

    Default Re: Keeping all my installed packages?

    Quote Originally Posted by Malcolm
    Quote Originally Posted by suse tpx60s
    malcolmlewis;2056765 Wrote:
    > Hi
    > Yes, that's what I do You can also install the application
    > called suse-sam

    OK, can you provide an example of how you set up your links? Also I
    installed suse-sam and ran it happily, as root from the cli, it scrolls
    away but then just it seems to just stop once it gets to the suse-sam
    rpm. where is the report placed?
    Hi
    Here's my one for the netbook, I can just run it after an install.
    Code:
    #!/bin/bash
    cd ~/
    rm .bashrc .profile
    rm -rf bin
    rm -rf .icons
    rm -rf .mozilla
    ln -s /data/malcolml/configuration/bashrc .bashrc
    ln -s /data/malcolml/configuration/profile .profile
    ln -s /data/malcolml/configuration/bin bin
    ln -s /data/malcolml/configuration/mozilla .mozilla
    ln -s /data/malcolml/configuration/icons .icons
    ln -s /data/malcolml/configuration/signature .signature
    ln -s /data/malcolml/configuration/wallpapers wallpapers
    ln -s /data/malcolml/configuration/claws-mail .claws-mail
    ln -s /data/malcolml/configuration/Local_Mail Local\ Mail
    ln -s /data/malcolml/configuration/gkrellm2 .gkrellm2
    On this system for root I have some customized configs eg lm_sensors,
    hddtemp etc that use the same linking.

    The command to run is sam (eg sudo sam)? It takes sometime to finish,
    then it produces sam-<date:time>.html, .log, .report and .xml in the
    directory you ran it.
    Hi
    You can also script the adding of repositories and zypper in <file
    list> as well.

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
    up 18 days 21:47, 3 users, load average: 0.89, 0.40, 0.15
    GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18


  7. #7
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: Keeping all my installed packages?

    Thanks I'll give that a try.
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  8. #8

    Default Re: Keeping all my installed packages?

    Quote Originally Posted by VintagePC View Post
    With the upcoming 11.2 release, this is something I'd like to know.
    I have two machines, desktop and laptop. The laptop is 32-bit, so I can keep my current packages and config while upgrading to 11.2 by doing a zypper dup...


    but my desktop is 32 bit and I want to upgrade to 64-bit (it is capable).
    I was told I need to do a clean install , so I plan to back up my /etc/ and my home dir, but how can I keep a list of all packages installed, and have yast re-install them later?

    Thanks!
    I dont think you can do that, I think the only way to use the 64bit version is if you do a fresh install.
    I know it sucks but I think that is indeed the case.
    Truth be told you really dont need to use the 64bit version if the 32bit version is working out for you.
    The 64bit version doesnt offer too much over the 32bit anyway, sure you will get a performance boost as 64bit takes advantage of larger amounts of RAM but other then that if you dont edit loads of media or are a hardcore gamer (which is a hard job to do on linux considering most of the games out there only work in windows) you really dont need the 64bit version.
    Honestly the only real differences between 64bit and 32bit in OS terms is some added performance depending on hardware, and the kernel.
    This is not like going from a Sony Playstation 1 to a Nintendo 64 (although if you asked me I always thought the Playstation was more visually appealing then the N64, but thats because the N64 was cartrage based)

  9. #9

    Default Re: Keeping all my installed packages?

    Found what I was looking for:
    Backup:
    rpm -qa queryformat %{NAME} > installed-software.bak

    (do clean install)

    to restore:
    sudo zypper install $(cat installed-software.bak)

  10. #10
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: Keeping all my installed packages?

    Have you tried your solution yet? Did it work? Looks quite elegant and simple.

    Can you explain what the first command does? From what I can figure it looks for all rpm that were installed by user / to a users account and then adds it to a backup file. Is that correct?
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •