FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2010
    Posts
    71

    Transfer to new drive & computer

    I'm about to do a new build with my first AMD processor. I figure I'll back up my home directory to my SMB/AFP cloud drive, and would like to backup my repositories and package list and import them on the new system. Does anyone know how to do the latter?

    Sent from my SM-G930R4 using Tapatalk

  2. #2
    Join Date
    Oct 2007
    Location
    Freedonia
    Age
    68
    Posts
    3,032

    Re: Transfer to new drive & computer

    My only suggestion is to use either a flash drive or an external hard drive for your backup, so that you're not dependent on having a working Internet connection and have complete control of your data at all times. Also, you'll probably want to put /home on its own partition on your new box to make any future installs simpler. (You still want to back /home up before doing a new install, but having /home on its own partition and telling anaconda not to format it makes that backup into a precaution, not a vital step.)
    Registered Linux user #470359 and permanently recovered BOFH.

    Any advice in this post is worth exactly what you paid for it.

  3. #3
    Join Date
    Sep 2008
    Posts
    176

    Re: Transfer to new drive & computer

    I've used this command (with output redirected to a file) to get a list of all packages installed...

    rpm -qa --qf "%{NAME}\n" > packages.lst

    It will be a LONG list... and can also be used as input to install everything:

    yum install $(cat packages.lst)

    As the "yum" reference shows, it has been a while since I've done this... but would expect a change of "yum" to "dnf" would also work. You'd get duplicate/skipped messages for packages already installed. Or, repeat the rpm command on the new system and sort/diff the 2 lists to see what might actually be missing and just "dnf install" them.

    jw

  4. #4
    Join Date
    Jul 2008
    Posts
    1,348

    Re: Transfer to new drive & computer

    It's a good idea to backup /etc and some or all of /var as well.
    Your repo configs are located in /etc/yum.repos.d/ so be sure to
    at least backup any /etc/yum* or /etc/dnf* directories and files
    if you want to preserve your yum/dnf configurations.

  5. #5
    Join Date
    Jan 2010
    Location
    behind that screen...
    Posts
    928

    Re: Transfer to new drive & computer

    I'm confused as to what do you mean by "back up my repo list and packet list". Do you mean just a list of the packets installed on your old pc, or actually copy your installed "programs"(rpm files if you want) to the new drive.

  6. #6
    Join Date
    Apr 2011
    Location
    Rainham, Essex, UK
    Posts
    319

    Re: Transfer to new drive & computer

    Quote Originally Posted by solo2101
    IDo you mean just a list of the packets installed on your old pc, or actually copy your installed "programs"(rpm files if you want) to the new drive.
    Just the list of packages and the contents of your /etc/yum.repos.d folder is enough to recreate the applications you currently have installed.

    This list will not include anything you have manually installed from src

  7. #7
    Join Date
    May 2010
    Posts
    71
    Thanks, I did my build last night. Yes, I meant a list- not the rpm files

    Sent from my SM-G930R4 using Tapatalk

Similar Threads

  1. Transfer GRUB to new drive
    By zabolots in forum Using Fedora
    Replies: 3
    Last Post: 4th July 2009, 12:04 PM
  2. will fedora 9 work if i intalled it my computer but put the drive in another computer
    By tootal2 in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 14th September 2008, 03:07 PM
  3. FC5 boot drive transfer
    By Alex135 in forum EOL (End Of Life) Versions
    Replies: 0
    Last Post: 10th December 2006, 04:38 PM
  4. Slow Dirve-Drive Transfer
    By lazlow in forum Hardware & Laptops
    Replies: 2
    Last Post: 29th June 2006, 08:57 AM
  5. FC2 Can't transfer install image to hard drive
    By dedales in forum EOL (End Of Life) Versions
    Replies: 3
    Last Post: 26th June 2004, 06:38 AM

Tags for this Thread

Posting Permissions

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