By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Here’s How I Batch Install All My Old Apps When Switching Linux Distros
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > Here’s How I Batch Install All My Old Apps When Switching Linux Distros
News

Here’s How I Batch Install All My Old Apps When Switching Linux Distros

News Room
Last updated: 2025/10/02 at 6:56 PM
News Room Published 2 October 2025
Share
SHARE

Whether the year of the Linux desktop is here or not, switching distros is still a pain. If you’re planning to make a move to another Linux distribution, here’s how I batch-install all my old applications I was using on the previous one.

You could of course just eyeball your application launcher and hand-write a list of apps you want to install, then manually search for and install all of them on your new system. I’ve done that before, and it’s tedious work. You also won’t see most command line tools that way. Batch-installing will save you a ton of time, and fortunately Linux command shells were built for such time-saving tasks.

Don’t Fear the Terminal

If you’re switching Linux distros, and you want to automate or semi-automate the installation of apps you like, you’re going to need to be comfortable with the terminal. To my knowledge, none of the graphical software managers have a means of batch-installing applications.

If you haven’t yet, consider reviewing Linux terminal guidelines for beginners. For this particular guide, you’ll definitely want to be familiar with installing software from the Linux terminal. You might also benefit from checking out a few beginner Bash scripts.

Before Switching, Run These Commands

Before deleting my current Linux distro, I need to grab a list of manually installed packages. This will include every piece of software installed on my system that didn’t come with it by default. Later, I’ll batch-install everything on my new system using that list.

Of course, this isn’t a foolproof method. Different distros—and even different versions of the same distro—can have different software installed by default. It’s possible a few apps that were preinstalled on my current distro won’t be present on the new one. The vast majority should be covered though.

If my current distro is Debian, Ubuntu, or one of their derivatives, I can use the apt-mark command to list all the packages I installed myself from the distro repository.

apt-mark showmanual

I also have several Flatpaks installed I want to use, so I ran this Flatpak command, which shows only the app name column from the list command, and pipes into the head command to cut the column heading:

flatpak list --app --columns=application | head -n-1

Linux terminal showing the output of several applications from a flatpak list command.

If you have Snap packages you want to batch-install, the best method I’m aware of for getting all their names is actually to list the directories in this location using the ls command:

ls /snap/bin

It’s not very elegant, and there might be some folder names that aren’t software names at all. To confirm, you can compare it against the output of this command:

snap list

Other Distro-Specific Package Managers

On Fedora and Arch systems, you can use these commands to see all installed packages:

dnf repoquery --userinstalled #Fedora
pacman -Qe #Arch

You’ll notice the output shows version numbers along with package names. If the distro you’re moving to may have the same packages with different version numbers, even if it uses the same package manager.

To print the list with those version numbers stripped out using the awk command on Fedora, you can run this:

rpm --query --all --info | awk --field-separator ': ' '/^Name/ {print $2}'

Or on Arch Linux, you can do the same with a simpler piping command:

pacman -Qe | awk '{print $1}'

Save the Output Somewhere Safe

Now I need to either copy and paste or, better yet, pipe the output of those commands directly into individual files. For example, I made a file called my-packages.txt with the output on my Ubuntu device using this command:

apt-mark showmanual > my-packages.txt

Linux terminal showing no visible output after redirecting the output of manually-installed package command to a text file.

The > redirect saves the output to the file. If you’re using Fedora or Arch, you can just tack on that “> my-packages.txt” redirect exactly the same way.

I’m also going to do the same for my Flatpak applications:

flatpak list --app --columns=application > my-flatpaks.txt

Regardless of the distro, you can quickly confirm the redirect was successful with the cat command:

cat my-packages.txt
cat my-flatpaks.txt

Linux terminal showing the output of cat commands on text files listing installed packages.

I highly recommend pruning from your lists any package names you aren’t certain you want to bring over to the new machine. The first time I attempted this, I didn’t bother pruning, and I ended up with weird graphical issues.

With all my application lists saved, it’s time to transfer them to a thumb drive or to the cloud. Perhaps the most efficient method is to back up your Linux device, then when you restore your files from the backup, find your package lists there.

How-To Geek logo

9/10

Brand

PNY

Capacity

256GB, 512GB, 1TB, 2TB

Speed

1000MB/s read, 800MB/s write

Connection

USB-C/A

The PNY Duo Link V3 flash drive offers both USB-C and USB-A plugs. With USB 3.2 Gen 2 speeds, you can expect up to 1,000MB/s read and 800MB/s write speeds from this flash drive. Coming in 256GB, 512GB, 1TB, and 2TB storage sizes, this all-metal flash drive makes it easy to bring large amounts of fast storage with you anywhere.


Run These Commands and Wait

Now it’s time to actually do the batch installation. On my new Ubuntu computer where I copied over my pruned list of packages, I first tried running a simple APT install command with a variable. It may work for you if you’re lucky.

sudo apt install $(cat my-packages.txt)

However, it threw a series of errors for me and failed to install any packages only because APT couldn’t identify some of the package names. If you run into that too, this is the next best command I’m aware of for getting the job done:

for i in $(cat pkglist); do sudo apt-get install $i; done

This is a Bash for loop that cycles through the entire list and attempts to install each one. If you’re on Fedora or Arch, just type dnf install or pacman -S in place of “apt install”.

This took quite a while for me because I didn’t do much pruning. Also, be aware that it will occasionally ask you to confirm you want to install software. If you want to skip those prompts and install everything no-questions-asked, run this tweaked version of the same loop, with a -y flag on the APT command which will automatically answer “yes” to all confirmation prompts.

for i in $(cat my-packages.txt); do sudo apt install $ -y; done

Linux terminal showing the output of a series of packages being installed.

Once the main package manager script was done, it was time for my Flatpaks. I first had to install Flatpak support on Ubuntu, and then enable the Flathub repo:

sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

I was able to install my Flatpaks using the simpler Bash command:

flatpak install $(cat my-flatpaks.txt)

Linux terminal showing the output of a series of Flatpaks being installed.

If it hadn’t worked, I would have simply worked it into the for loop.

Watch for Errors

Be sure to review all the output from the installation commands you run. It’s possible you’ll see error messages for specific packages you installed. If that’s the case, try installing them individually to figure out what the issue is.

Expect to have several issues if the distro you’re hopping to uses a different package manager or repositories than the one you’re switching from. Packages names are often slightly different between repositories, and your package manager may not be able to resolve those installation requests. They also may come from special repositories you’ll need to find elsewhere.


One common type of Linux software I didn’t mention here is AppImages. I love using AppImages because they can be transported between devices, and in a distro-hopping operation their portability will save you some time.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article I’ll never buy these PC components new
Next Article The Best MacBook Pro Alternatives We’ve Tested for 2025
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Google’s Tensor G5 processor to enter tape-out stage, manufactured with TSMC’s 3nm process · TechNode
Computing
Get a Motorola Razr Plus 2024, a smartwatch, and earbuds for just $700!
News
Solana Price Prediction Hits $600, But Pepeto Presale Looks Like 100x Best Crypto Investment | HackerNoon
Computing
Harvard warns AI is already manipulating us by using one very human tactic
News

You Might also Like

News

Get a Motorola Razr Plus 2024, a smartwatch, and earbuds for just $700!

3 Min Read
News

Harvard warns AI is already manipulating us by using one very human tactic

4 Min Read
News

NBCUniversal and YouTube TV finally strike a deal — what that means for you

4 Min Read
News

Ghost of Yotei Starter Guide: 9 Tips to Know

6 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?