72
submitted 5 months ago by GravitySpoiled@lemmy.ml to c/linux@lemmy.ml

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?

all 26 comments
sorted by: hot top controversial new old
[-] bloodfart@lemmy.ml 44 points 5 months ago

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!

[-] bjoern_tantau@swg-empire.de 32 points 5 months ago

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

[-] bloodfart@lemmy.ml 10 points 5 months ago

Ty, it’s early yet…

[-] mat@linux.community 22 points 5 months ago

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

[-] Tlaloc_Temporal@lemmy.ca 2 points 5 months ago

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

[-] ArcaneSlime@lemmy.dbzer0.com 12 points 5 months ago

duke nukem forever

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

[-] boredsquirrel@slrpnk.net 5 points 5 months ago

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

[-] GravitySpoiled@lemmy.ml 4 points 5 months ago

Nice one.

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

[-] boredsquirrel@slrpnk.net 7 points 5 months ago

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.
[-] Deckweiss@lemmy.world 34 points 5 months ago* (last edited 5 months ago)

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

just physically move the nvme from one computer to the other

[-] ikidd@lemmy.world 10 points 5 months ago

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

[-] eldavi@lemmy.ml 6 points 5 months ago

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.

[-] John@discuss.tchncs.de 2 points 5 months ago

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

[-] yak@lmy.brx.io 12 points 5 months ago

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.

[-] halm@leminal.space 6 points 5 months ago

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!

[-] GustavoM@lemmy.world 5 points 5 months ago

tl;dr:

dnf list installed > $anydir/meow

On new computer, with fedora installed and the meow file;

dnf install $(cat $anydir/meow)

[-] boredsquirrel@slrpnk.net 8 points 5 months ago

Well doesnt work on Silverblue but

flatpak list --app

If you have configured Flatpaks, you may want to copy the ~/.var/app/ directories.

[-] Dariusmiles2123@sh.itjust.works 1 points 5 months ago

I’m also thinking a lot about the best way to move everything from one computer to another if one day I buy a new computer.

I thought I had found a way with Clonezilla, but after trying to clone my Surface Go 1 to an old laptop I had, it didn’t work. Could be because I hadn’t removed the surface specific kernel. But now I don’t feel safe anymore.

Some people are suggesting to copy my home folder which I did, but I’m not sure it would fit my needs.

Basically, my files are taken care of with cloud storage (kDrive by the way), but I’d like to keep the way all my programs and extensions are setup.

So I ain’t sure I was a big help😅

I hope one day we’ll just have some program to prepare an archive to unpack for your next system to make the transition seamlessly. Or just putting the computer side by side and sending everything wirelessly.

I feel like we need this with all the personalization we can have on Linux.

[-] pinchcramp@lemmy.dbzer0.com 3 points 5 months ago

Pretty sure that is possible with Nix and home-manager.

[-] nanook@friendica.eskimo.com 1 points 1 month ago

Depending upon how much you have customized it, you could just copy the entire OS, adjust various config files for the new partition UUID's.

this post was submitted on 17 Jun 2024
72 points (92.9% liked)

Linux

48375 readers
1223 users here now

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

Related Communities

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

founded 5 years ago
MODERATORS