I just bought a new computer. I’ll install fedora silverblue. Do I just need to copy the home directory? And crontab. What else do I need to move?

44 points

If you’re currently running a rpm distro, you can make it easier on yourself by using the duke nukem forever command to make a list of your installed programs: dnf list installed.

Once that’s outputting an appropriate format, dump it into a text file with | oldprogs.txt.

On your new computer, that same duke nukem forever command can be used to install from the list with something like dnf install << oldprogs.txt

I bet you can come up with a way to stuff all that into a neat little one liner that’ll provide error handling, output teeing and everything else!

permalink
report
reply
32 points

One correction, it would be dnf list installed > oldprogs.txt. > instead of |.

permalink
report
parent
reply
10 points

Ty, it’s early yet…

permalink
report
parent
reply
22 points

Thanks, I can’t think of it as anything but duke nukem forever now. Your comment made my day.

permalink
report
parent
reply
2 points

It’s more appealing than the Did Not Finish command. That’s to thematically close to flaming crashes for my liking.

permalink
report
parent
reply
12 points

duke nukem forever

My life has two eras, pre- and post- awakening to this acronym. Updates will never be the same.

permalink
report
parent
reply
5 points

Well that doesnt work for RPM distros, but just for dnf distros XD

permalink
report
parent
reply
4 points

Nice one.

On silverblue, everything is installed within a distrobox. I should back that up and make sure it’s in my home folder.

permalink
report
parent
reply
7 points

No not everything is installed in a Distrobox.

  • the core system contains base stuff
  • you can layer needed apps that need to be on the base system
  • GUI apps are preferred as Flatpaks
  • some random stuff may be in a Toolbox or Distrobox
  • you can use pip, cargo and others on the base OS to install binaries there.
permalink
report
parent
reply
34 points
*

Nobody mentioned it yet, but my current no hassle solution is to:

just physically move the nvme from one computer to the other

permalink
report
reply
10 points

That’s all I’ve done, or imaged it to a new drive. Linux is glorious for portability.

permalink
report
parent
reply
6 points

i’ve done this a couple times w sata and pata drives and it works; there’s lots to clean up to do, but it works.

permalink
report
parent
reply
2 points

Or if you want to use the new drive, clone your drive to the new one(using clonezilla for example)

permalink
report
parent
reply
12 points

Consider using tar to create an archive of your home directory, and then unpacking that on the new machine. This will help to capture all the links as well as regular files, and their permissions.

Take a minute to think what else you have changed on the old machine, and then take another minute to think how tricky it would be to replicate on a new machine. Downloading the apps again is gloriously easy. Replacing configs, or keys and certificates, is not!

I normally archive /etc as well, and then I can copy out the specific files I need.

Did you install databases? You’ll want to follow specific instructions for those.

Have you set up web sites? You’ll want to archive /var/www as well.

permalink
report
reply
12 points
*
Deleted by creator
permalink
report
reply
4 points

Thx.

Meaning, backup a list of flatpak apps and reinstall them on the new machine

permalink
report
parent
reply
6 points

See if flatpak has some sort of export format that would let you install everything the same on the other machine. Some package managers have that.

permalink
report
parent
reply
2 points

I think I wrote a function for that a year ago, I’ll have a look

permalink
report
parent
reply
3 points

If you set up flatpak as --user, bringing your home directory over would be 99% of the job.

permalink
report
parent
reply
6 points

I just made the move to another computer, using the same distro and DE setup as the old one. So far I managed by backing up ~/ and /usr/ so I could drop in system and programming settings.

I don’t know how that will work if you’re going for a new distro but it’s always good to have your old configs for reference!

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 6.8K

    Monthly active users

  • 6.6K

    Posts

  • 181K

    Comments