GentooThis forum is for the discussion of Gentoo Linux.
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.
Thnx. That would make for less typing.
But because of the indents to the script I need to leave those echo's in there so everything lines up.
Other then that, do I have all the bases covered?
try one and see what it does. it just a matter of formatting the text to show how you want it on your screen.
and if it is doing everything that you want it to, then I'd say yes.
Thnx. I already know if any key but y is hit the script moves onto the next step in the process.
Code:
Update the Portage Tree? f
Check Gentoo Security Advisories? e
Check System Updates? s
Porceed with System Updates? t
Remove Pckages No Longer Needed? u
Update ETC Files? s
*******************************
*******************************
**
** SYSTEM UPDATE COMPLETE
**
*******************************
*******************************
basics covered, here's some further development ideas to consider.
could include overlay and eix stuff maybe.
glsa stuff maybe too? like to give the option to only ugrade the glsa packages.
also, i wondered about the questions being asked up front, bam bam bam bam bam, before anything happens, so it isnt left waiting for user interaction. so it would be as fast for the user saying "y" to the questions, as "n" (or other).
...and then even have an alternative answer to "y", where "a" for "ask" could still offer the chance to be asked before proceeding at some stage, like where what you might want to do might change depending on the outcome of the previous step.
basics covered, here's some further development ideas to consider.
could include overlay and eix stuff maybe.
What do you mean with the eix reference? I do syncing as the first thing in the script.
Overlays... maybe. Haven't really looked into overlays as I am still new to gentoo and its workings
Quote:
glsa stuff maybe too? like to give the option to only ugrade the glsa packages.
Again I do this in the script so what are you referring to here?
Quote:
also, i wondered about the questions being asked up front, bam bam bam bam bam, before anything happens, so it isnt left waiting for user interaction. so it would be as fast for the user saying "y" to the questions, as "n" (or other).
...and then even have an alternative answer to "y", where "a" for "ask" could still offer the chance to be asked before proceeding at some stage, like where what you might want to do might change depending on the outcome of the previous step.
Sometimes it make sense to ask the question right before the action as something that is shown just before might influence your decision on if you should continue or not. If you answered everything upfront you might not want a portion to be completed at the present time because of something that was in one of the outputs.
I have stream-lined the script a bit and added color. When I get home tonight I'll post the new script.
You miss the keep-going feature. Kinda annoying when portage stops on every package which breaks. like sdl2-mixer which is not fixed for over 2 weeks, open bugs for ages.
And depclean is dangerous. I would not recommend removing packages if you do not have to by a script
depclean removes anything which is not related to the world file, and the world file itself, is a headache to keep it sane.
why not
emerge --sync; emerge --update --keep-going --deep -N world
you can add that bdeps things, but i hardly ever add that
i use
emerge --sync; emerge -av --update --keep-going --deep -N world
to see a list whats updated. that is also a decent point to uninstall software, change useflags, lookup useflags before you proceed.
--
also i would not recommend to use etc-update by a script. that tool is broken in my point of view. the majority are just fresh config files, where most of the time i delete rm /etc/.... _cfg_0000_file_name.
Never let a script touch the bootloader, grub.cfg or the /etc directory
etc-update will overwrite your network password, and other user changed config files, so you loose functionality. never ever use it carelessly! it's more recommended to ignore the message about config files
--
if you want to update your box and do not really care, add a cron job for that. not recommended but if you want to.
also setting kernel symlink, x-server + nvidia-driver can render you in loss of x-server, direct rendering, so an autoupdate script is not recommended.
gentoo has the habbit to provide kernels with not compatible nvidia-drivers. after 2 weeks you can update to a newer kernel branch usually after a new nvidia-driver is in the portage tree
it also does not remove older kernels, older kernel modules, cleans up boot.
--
i would not give the impression, that this update script fix everything for the newbie user. for the others its just enough to
emerge --sync; emerge -av --update --keep-going --deep -N world
i would not give the impression, that this update script fix everything for the newbie user. for the others its just enough to
emerge --sync; emerge -av --update --keep-going --deep -N world
Thanks for you feed back, I'll take a look at some of those things you listed. Never intended to give the impression that this is the script that fixes anything. If you read what I posted I state that I installed Gentoo and this is the script I use to update my system. This is an interactive script so nothing is done without your approval.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.