Installed LFS, first questions about uninstalling, updating etc
Linux From ScratchThis 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
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.
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:
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)
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.