VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
Make Reinstalling Linux Faster With A Package List DistroTube

Make Reinstalling Linux Faster With A Package List DistroTube

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Make Reinstalling Linux Faster With A Package List DistroTube Sometimes you would like to reinstall your Linux distribution but dread the idea of having to reinstall the hundreds or thousands of programs that you need. This process can be streamlined and made much faster by simply leveraging the power of your package manager and keeping a list of the packages that you have explicitly installed on your machine. ERRATA: If you are on Debian/Ubuntu: apt list installed (lists everything installed) apt list manual-installed (lists explicit installed) - https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#List_of_installed_packages
Date: 2022-03-30

Comments and reviews: 10


If there were not those packages outside the distribution - or even Gentoo - who build from the source and the source has gone away. GCC keeps evolving but tries to outrun dementia. e.g. gcc-9.2 compiling vlc-3.0.8 cannot understand -abs(p_in->format.i_height);- you have to spell it -abs((int)p_in->format.i_height);- This is not the daily user but whenever you do tell your personal computer to do what he is meant for, doing you personal things, this is what happens. Thanx a lot. It is still a good idea to have a plan. I do have a backup of my tweaked sources. )
Compiling from the sources, Gentoo, Linux from Scratch, Slackware current aided by Slackbuilds.org is no different.

reply

This is great man, I had a different system much poorer than this, but I would take history of commands I-ve ran and make it print to a file and store that file and then the next time I already have a list that includes things that were installed and quickly do that manually. It helps as well, especially for those solutions that had taken me a long time to search or solve for. This is combined with my list will help a lot.
reply

You make a great point. and I think there is something extremely important to be added.
If the reason for reinstalling is a conflict in installed applications, reinstalling from the list may reinstall the conflicting apps.
Other than that, Thumbs up.
And I like how you sorted out the AUR for the command line to exclude it from installing.
Thank you for the video.

reply

Arch users, note the -n and -m option for the pacman -Q command.
-n lists packages that are native to the sync database (i.e. the arch repos). -m lists packages that are not found in the arch repos and that you've installed yourself via pacman -U (i.e. all AUR packages).
$ pacman -Qqen
$ pacman -Qqem
Just repeating what's already been said to stress the distinction.

reply

I'm in the habit of manually updating a package list every time I install something.
That way, I avoid adding dependencies. And I keep it somewhat sorted into categories. Sometimes even commenting on specific packages so that I know why I installed them.
Oh and if they weren't installed from the repos I mark where they came from.
(AUR, Snap, flatpak, etc)

reply

I just built a list of Ansible roles that install everything including config changes. In a playbook I chose the roles to install. This way I easily get rid of things that I installed previously and then don't use anymore after a while.
This works for distribution packages, packages from additional repositories, and apps built from source, ...

reply

Thanks for this video DT. I have two questions, is there any point to installing dependencies since dependencies are installed by default when you install a -master- package ? How to do version control all of the tweaks I-ve made to my system over time ? For me that-s the most annoying task when bringing up a new system.
reply

this was a nice video but i was curious could you make like a bash script or something with aliases or something with your git clones and such or is this faster?
Edit: after a thought. could you make a autorun script or something not sure how but i was just thinking of something to quickly run the commands

reply

Looks like Synaptic has functionality for this by generating a package download script. I usually like to use a GUI, preferably Synaptic for such things. I don't care for the store-type GUI package managers. I have been getting more into Arch, also using ArcoLinux, so this is a handy tip. Thanks, dude.
reply

1 year later and I just recently watched this. I created a few package list files to keep things organized and I got my arch install time down to about 30 minutes including a couple of aur packages that take a while to compile from source. This is amazing. Thanks for posting.
reply
Add a review, comment






Other channel videos