LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-01-2017, 08:17 AM   #1
hariskar
Member
 
Registered: Feb 2017
Distribution: Gentoo, Linux From Scratch
Posts: 53

Rep: Reputation: Disabled
Installed LFS, first questions about uninstalling, updating etc


After I finished installing LFS and am installing BLFS parts I have some questions:

1. At boot after login a message that link is up overlaps the command promt. How could I make it appear above the command prompt? Also can "No mail" be not shown there? I am not interested in checking mail at boot.
https://ibb.co/cJHC5w

2. I installed svn-20171020 and would be happy if I found a way to apply updates without having to rebuild.
Would it be save to update what is new from svn-20171020 to svn-20171028? Here are the packages:

Bash 4.4.12
Binutils-2.29.1
Check-0.12.0
Coreutils-8.28
DejaGNU-1.6.1
Eudev-3.2.4
E2fsprogs-1.43.7
Expat-2.2.4
Expect-5.45.3
File-5.32
Gawk-4.2.0
IPRoute2-4.13.0
Man-pages-4.13
MPFR-3.1.6
Perl-5.26.1
Texinfo-6.5
Tzdata-2017c
Util-Linux-2.31

Binutils-2.29.1 is part of the toolchain, so I should not update?

3. Is there any way to find reverse dependencies? Eg if I want to uninstall a progeram with it's dependencies how can I know if some dependencies are needed from another program I still use?

4. Is there any advise to make keeping my system up to date easier? Any easy way to find the packages that need to be updated? (without package manager)

Thank you!
 
Old 11-01-2017, 11:50 AM   #2
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
Quote:
Originally Posted by hariskar View Post
4. Is there any advise to make keeping my system up to date easier?
I can't answer the other questions, but on this one, I use a simple recipe. Use at your own risk. Be aware that if anything goes wrong, there will be no help.

I upgrade LFS in place using the svn book, but only if there is a new glibc. I use the following approach:

If a new glibc is released, then using the latest LFS svn book, boot LFS/BLFS and login as root.

Install the latest linux API headers.

Compile glibc. Remember that you are already logged in to a working LFS system. Therefore, skip the symlinks. The symlinks are intended for an incomplete LFS build taking place from a host using chroot so that gcc can find its libraries and headers. The sinario here is that you have a completed LFS and BLFS with a fully configured gcc. If you run those symlinks, recovery is almost impossible. You will have hosed LFS/BLFS. That is why I back up LFS using Clonezilla.

Then compile binutils, coreutils, dbus, util-linux, and systemd.

Finally, compile the linux kernel corresponding to the API headers that you just installed.

Unless you are using proprietary graphics drivers, it should boot into an GUI login prompt. Run version.sh to see if the new glibc is there.

Upgrading the BLFS svn book is not difficult. No problems there. You pick only the installed packages that have new versions.
 
1 members found this post helpful.
Old 11-01-2017, 12:47 PM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi
To remove the mail prompt you can add
unset MAILCHECK to your .bashrc
 
1 members found this post helpful.
Old 11-01-2017, 01:16 PM   #4
sr_ls_boy
Member
 
Registered: Apr 2015
Posts: 105

Rep: Reputation: Disabled
For help with number one try this link, if you are not using systemd.

https://superuser.com/questions/3513...ing-my-console
 
1 members found this post helpful.
Old 11-02-2017, 06:08 PM   #5
hariskar
Member
 
Registered: Feb 2017
Distribution: Gentoo, Linux From Scratch
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by plasmonics View Post
I can't answer the other questions, but on this one, I use a simple recipe. Use at your own risk. Be aware that if anything goes wrong, there will be no help.

I upgrade LFS in place using the svn book, but only if there is a new glibc. I use the following approach:

If a new glibc is released, then using the latest LFS svn book, boot LFS/BLFS and login as root.

Install the latest linux API headers.

Compile glibc. Remember that you are already logged in to a working LFS system. Therefore, skip the symlinks. The symlinks are intended for an incomplete LFS build taking place from a host using chroot so that gcc can find its libraries and headers. The sinario here is that you have a completed LFS and BLFS with a fully configured gcc. If you run those symlinks, recovery is almost impossible. You will have hosed LFS/BLFS. That is why I back up LFS using Clonezilla.

Then compile binutils, coreutils, dbus, util-linux, and systemd.

Finally, compile the linux kernel corresponding to the API headers that you just installed.

Unless you are using proprietary graphics drivers, it should boot into an GUI login prompt. Run version.sh to see if the new glibc is there.

Upgrading the BLFS svn book is not difficult. No problems there. You pick only the installed packages that have new versions.
Thank you! So you leave the whole LFS without updates till there is new glibc? And if there is new glibc you update only glibc and toolchain? What about all other packages that don't belong to toolchain? Is it dangerous to update them too?

Last edited by hariskar; 11-02-2017 at 06:12 PM.
 
Old 11-03-2017, 02:56 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,562
Blog Entries: 19

Rep: Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445
The dangerous packages are glibc, kernel headers, binutils, gcc and the three gcc libraries (mpc, mpfr, gmp). Anything else can be updated safely. Packages that should be updated regularly are the security ones: sudo, openssl/gnutils, nfs, nspr and your browser.
 
1 members found this post helpful.
Old 11-03-2017, 06:30 AM   #7
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
Quote:
Originally Posted by hariskar View Post
Thank you! So you leave the whole LFS without updates till there is new glibc? And if there is new glibc you update only glibc and toolchain? What about all other packages that don't belong to toolchain? Is it dangerous to update them too?
Yes, basically glibc and the toolchain.

No it is not dangerous to update the others. I skip them to save time and because they don't seem critical.

As far as gcc, it is also in the BLFS book. You can upgrade it from there at any time.

In post #6, hazel mentions a few more essential ones. Maybe you could add those to the toolchain. They are small and don't take up much time.

Last edited by plasmonics; 11-03-2017 at 06:45 AM.
 
1 members found this post helpful.
Old 11-03-2017, 12:49 PM   #8
hariskar
Member
 
Registered: Feb 2017
Distribution: Gentoo, Linux From Scratch
Posts: 53

Original Poster
Rep: Reputation: Disabled
Thank you for replies!

Is there any recommended proceedure to update binutils?
 
Old 11-07-2017, 01:42 PM   #9
hariskar
Member
 
Registered: Feb 2017
Distribution: Gentoo, Linux From Scratch
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
Hi
To remove the mail prompt you can add
unset MAILCHECK to your .bashrc
Isn't .bashrc loaded after I enter startx? The "No mail" message appears before that.
 
Old 11-08-2017, 11:08 AM   #10
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
Quote:
Originally Posted by hariskar View Post
Is there any recommended proceedure to update binutils?
No. Just cut and paste from chapter 6.16.1.
 
1 members found this post helpful.
Old 11-08-2017, 12:02 PM   #11
hariskar
Member
 
Registered: Feb 2017
Distribution: Gentoo, Linux From Scratch
Posts: 53

Original Poster
Rep: Reputation: Disabled
So, although it belongs to the toolchain it is an easy and safe update?
 
Old 11-09-2017, 06:35 AM   #12
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
Quote:
Originally Posted by hariskar View Post
So, although it belongs to the toolchain it is an easy and safe update?
yes I think so. So far no problem with it.
 
1 members found this post helpful.
Old 11-11-2017, 03:34 PM   #13
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi
To stop "mail check" at login
edit /etc/login.defs

from MAIL_CHECK_ENAB yes
MAIL_CHECK_ENAB no
 
1 members found this post helpful.
Old 11-11-2017, 11:25 PM   #14
hariskar
Member
 
Registered: Feb 2017
Distribution: Gentoo, Linux From Scratch
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
Hi
To stop "mail check" at login
edit /etc/login.defs

from MAIL_CHECK_ENAB yes
MAIL_CHECK_ENAB no
Excellent, thank you!
 
  


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
Routines for updating lfs Lennie Linux From Scratch 4 07-03-2013 08:38 AM
Uninstalling/Updating Software c4onastick Slackware 5 10-17-2006 05:03 PM
Updating LFS Brennan Linux From Scratch 1 09-19-2005 03:43 PM
More uninstalling and updating nightrider Linux - Newbie 1 06-25-2005 07:54 PM
Programs - uninstalling, updating, pointing mymojo Linux - Newbie 2 10-20-2003 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:26 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