Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
as my system Lubuntu 16.04.5 LTS, 64 bit gets its updates only util April next year I´ll eventually have to deal with the topic of upgrades.
I plan to go for LTS again (bionic beaver). I think I will try the upgrade which synaptic keeps offering for a while now. But in case that doesn´t go well I´ll have to opt for a clean install (after doing a system-backup with clonezilla).
I have a separate /home-partition, so I think I can keep that one.
My question is: how do I go about installing all the packages that I have now?
Some or even most of them come with the new system I think. So it´s the difference between the packages that are currently installed and the standard ones of bionic which I have to deal with.
Not an ubuntu person, but use their manager (Synaptic? Apt?)
Don't go mixing apps from one version onto another, because these were compiled against certain other files (libraries, headers, etc) and sooner rather than later a clean install will be your only option (After the system pukes). Sounds like a good time for backing up though :-). Back up /home especially, on another disk, usb drive, or to dvds if necessary.
and sooner rather than later a clean install will be your only option
You are certainly right there. I think I´ll go for a clean install right away.
The thing is: I have to reinstall those packages that I installed over the years. Somehow I have to create a list of those additional packages and then have to install them with
Code:
xargs -a /path/to/list sudo apt-get install
So basically I´m looking for a command to produce this list.
i made a dist-upgrade on debian (no gui) and there was absolutely no problem.
one would hope ubuntu also can manage that, they had more than 10 years to learn.
i would look for a decent tutorial about that (preferably from ubuntu pages), before starting.
saving your /home makes a lot of sense, but don't expect to be able to just drop it back in without any rough edges.
no, i would try the dist-upgrade first.
no harm in trying, if the alternative is a fresh install.
I have a dozen *buntu installations. The only times I don't dist-upgrade an LTS is when adding *buntu to a new PC. The only one I have on 18.04 is the newest. Most of the rest except for the two oldest, which I haven't used in over a year and have 12.04, are still with 16.04 (with TDE) or 14.04 (with KDE4).
I think "apt-cache pkgnames" will give you a list of what's currently installed on your system. If it comes to reinstalling, you only need to consider the applications; any libraries that they need will be installed along with them.
Yeah, I think I´ll go for dist-upgrade first. But a plan B is always good to have. In case of difficulties
I´d have to perform a a clean-install after all ......
@mrmazda:
Fine. Thanks for sharing. That sounds promising.
@hazel:
"apt-cache pkgnames" in my case produces a list of all theoretically available packages. Not so much those that are installed on my system.
Yet I´ve found a command that shows all packages that were manually installed afterwards:
Code:
comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.