LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-10-2018, 09:10 AM   #1
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Rep: Reputation: Disabled
packages after clean-install


Hi altogether,

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.

Any suggestions?

Tnx a lot in advance.
Greetings.
Rosika
 
Old 11-10-2018, 12:14 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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.
 
Old 11-11-2018, 08:51 AM   #3
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Hi business_kid,

thanks a lot for your answer.

Quote:
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.

Greetings
Rosika
 
Old 11-11-2018, 10:10 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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.
 
Old 11-11-2018, 10:45 AM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
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).
 
Old 11-11-2018, 11:26 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
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.
 
Old 11-11-2018, 02:23 PM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
+1 on all the dist-upgrade suggestions, & do your backups.

When/if the upgrade goes bellyup, there is some 'apt-get --fix-broken' thing to sort it. Repeat, back up the /home.
 
Old 11-12-2018, 08:11 AM   #8
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Hi again and thanks all of you for your replies.

@ondoho:

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)
(see https://forum.ubuntuusers.de/topic/s.../#post-8901018 ).
After a clean-install of the new system:
Code:
xargs -a /path/to/that/list sudo apt-get install
should give me those packages back.
I hope that´s correct so far.

@business_kid,

thanks for the hint. Really good to know

Greetings
Rosika
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clean $PATH and clean python install iFunction Linux - General 1 10-12-2016 09:09 AM
[SOLVED] New to Fedora... Can I clean-install upgrade and keep all my packages? Claudee Fleming Fedora 3 06-25-2012 09:29 PM
[SOLVED] Building clean packages, patched or not? thegato Slackware 3 02-18-2012 03:31 PM
clean packages and the like ekdya Fedora 3 10-04-2006 12:10 AM
after a clean deabian sarge netinst..what packages should I install first?? copter Debian 3 06-28-2004 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration