LinuxQuestions.org
Review your favorite Linux distribution.
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-18-2018, 07:19 AM   #1
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 276

Rep: Reputation: Disabled
what to consider when performing a clean-install


Hello 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 or clean-install.

Iīve been collecting opinions and views and it seems that to avoid any potential difficulties after an upgrade a clean-install would be the way to go.

Iīve got three partitions on my system: /-partition, /home-partition and a third partition for the data of my virtual machines.

According to the info I got on https://itsfoss.com/replace-linux-from-dual-boot/ itīs possible to retain the /home-partition with a clean-install. I think thatīs valid for my third partition as well.

So itīs basically the /-partition which is created afresh.
In order to produce a list of the programmes that are manually installed on my current system I use the command

Code:
comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)
and after installing bionic I restore them with

Code:
xargs -a /path/to/list sudo apt-get install
BUT: Iīm sure there are a few other things to be taken into consideration. After thinking about it for a while I came up with:

- I have programmes installed as snaps......
- what about keys for enigmail used in thunderbird?
- changes in the fstab-file
- /usr/local/bin: Iīve put some scripts in there
- what about my printer configuration?

Plus: Iīm sure there are some other things I havenīt thought of.

Addressing those of you who have experience in performing a clean-install:

How do you go about it? Is there something else important to consider?

Thanks a lot in advance.

Greetings
Rosika
 
Old 11-18-2018, 08:24 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,618

Rep: Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754
you need to save your local settings (some files under-inside /etc for example). Your home will not be modified, but probably you need to reconfigure your apps like mailer - but actually you know your system and you know what to save. (if you have a database, if you have <whatever> installed and customized...)

Reinstalling packages may or may not work, sometimes the name of the packages are modified/renamed or just a different one required on the new system.
 
Old 11-18-2018, 08:51 AM   #3
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 276

Original Poster
Rep: Reputation: Disabled
Hello pan64,

thanks for your reply.

Yes, itīs actually true that I have to know the things I installed/modified etc. myself.
Yet when I first started to use Lubuntu as my productive system I was a novice after all. So there are certainly things I havenīt jotted down as I would do today.

/etc is worth taking care of. Thanks for pointing that out.

I think itīs a good thing that I make system-backups with clonezilla on a monthly basis, and certainly before a clean-install.
So with the workaround to produce a mountable img from a clonezilla backup described on
https://drbl.org/faq/fine-print.php?...ne_restore.faq
it should be possible to access any data from the old /-partition afterwards if need be.

Thanks again.

Greetings
Rosika
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mdadm: not enough to start the array while not clean - consider --force. cookkoo Linux - Newbie 6 09-28-2016 03:49 AM
[SOLVED] how to keep printer/scanner drivers when performing a fresh install yaloo Linux - Newbie 5 06-09-2012 11:39 AM
Fresh install not performing Randymanme Mandriva 1 09-15-2010 03:08 AM
MDADM Help - "not enough to start the array while not clean - consider --force." DavidDiggs Linux - Server 2 03-27-2010 08:55 PM

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

All times are GMT -5. The time now is 08:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration