View previous topic :: View next topic |
Author |
Message |
alfagamma81 Tux's lil' helper
Joined: 22 Mar 2009 Posts: 86 Location: Finland
|
Posted: Tue May 12, 2009 5:00 pm Post subject: How do you update everything? |
|
|
I'm just curious. In which order do you type options when , lets say updating everything with new use flag(s)?
Personally, I always type "emerge -pvuDN world"..and after i've checked the use flags and stuff i do emerge uDN world. I never use -a option.
What combinations you usually use? -DuvNa, -uvNaD, -DaNu, NvpuD... anyone doing the same way as me? |
|
Back to top |
|
|
RedSquirrel Guru
Joined: 22 Apr 2008 Posts: 336
|
Posted: Tue May 12, 2009 5:29 pm Post subject: |
|
|
I generally use the same thing. On a few occasions, I have fetched (-f) the sources beforehand. Sometimes I have used the --ask option for one last look at everything before I proceed with the updates. |
|
Back to top |
|
|
alfagamma81 Tux's lil' helper
Joined: 22 Mar 2009 Posts: 86 Location: Finland
|
Posted: Tue May 12, 2009 5:38 pm Post subject: |
|
|
In what order do you put the options? i'm always putting --pretend --verbose --update --deep --newuse ; pvuDN. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue May 12, 2009 5:48 pm Post subject: |
|
|
I sometimes use --with-bdeps=y; I always use --reinstall=changed-use instead of --newuse. Alas, there's no short option for those.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
bytenirvana Apprentice
Joined: 10 Jun 2006 Posts: 218 Location: Volksstaat Hessen
|
Posted: Tue May 12, 2009 7:31 pm Post subject: |
|
|
Code: | emerge -avuND world --keep-going |
I additionally have
Quote: |
alias emerge="sudo nice -n 19 emerge -vt"
| in my .bashrc _________________ Linux User #422770 |
|
Back to top |
|
|
tanderson Retired Dev
Joined: 11 Apr 2007 Posts: 193
|
Posted: Tue May 12, 2009 8:33 pm Post subject: |
|
|
I do:
Code: | paludis -i world --dl-reinstall if-use-changed |
Sorta simple, I just wish there was a short option for the if-use-changed stuff.[/code] _________________ No Man is Just a Number!
--The Prisoner |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue May 12, 2009 9:21 pm Post subject: |
|
|
Hi, I use this :
Code: |
# eix-sync
# emerge -puDNv world
# emerge -fuDNv world
# emerge -uDNv world
# dispatch-conf
# revdep-rebuild --ignore
# rm /usr/portage/distfiles/*
|
|
|
Back to top |
|
|
alistair Retired Dev
Joined: 15 Jul 2005 Posts: 869
|
Posted: Tue May 12, 2009 11:29 pm Post subject: |
|
|
gentoofan23 wrote: | I do:
Code: | paludis -i world --dl-reinstall if-use-changed |
Sorta simple, I just wish there was a short option for the if-use-changed stuff. |
Have a enviroment variable PALUDIS_OPTIONS="--dl-reinstall if-use-changed" _________________ ______________
Help the gentoo-java project. Visit Gentoo Java Project
what good are admin powers if you don't abuse them for personal gain - mark_alec |
|
Back to top |
|
|
RedSquirrel Guru
Joined: 22 Apr 2008 Posts: 336
|
Posted: Wed May 13, 2009 12:46 am Post subject: |
|
|
alfagamma81 wrote: | In what order do you put the options? i'm always putting --pretend --verbose --update --deep --newuse ; pvuDN. |
I use that order as well.
Code: | # emerge -pvuDN world
# emerge -avuDN world
|
|
|
Back to top |
|
|
RedSquirrel Guru
Joined: 22 Apr 2008 Posts: 336
|
Posted: Wed May 13, 2009 12:50 am Post subject: |
|
|
d2_racing wrote: | Hi, I use this :
Code: |
# eix-sync
# emerge -puDNv world
# emerge -fuDNv world
# emerge -uDNv world
# dispatch-conf
# revdep-rebuild --ignore
# rm /usr/portage/distfiles/*
|
|
Why do you empty your distfiles directory? Have you no respect for the mirrors? |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Wed May 13, 2009 1:07 am Post subject: |
|
|
Code: | esync
update -auD @world | Here esync is the following function in .zshrc Code: | esync() { # Sync emerge and do some extra stuff
emerge --sync | grep -v --color=none '/$' && {
layman -S
update-eix } || \
echo -e "\x1b[1;31m esync aborted by user\x1b[0m"
# Running fixpackages not needed. --sync seems to do something already
} | and update is the script provided by steveL. _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Wed May 13, 2009 1:21 am Post subject: |
|
|
order doesn't matter.
I use -uDNav...
Code: | # DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXXOKjYpx installed on Mon Mar 30 16:12:16 2009)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
00 02 * * * eix-sync
30 02 * * * emerge -uDNv @system @world && emerge @preserved-rebuild && revdep-rebuild && echo "no need to worry" | mail -s "success" mkern@penguin |
_________________ iVBORw0KGgoAAAANSUhEUgAAA
avatar: new version of logo - see topic 838248. Potentially still a WiP. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Wed May 13, 2009 2:04 am Post subject: |
|
|
RedSquirrel wrote: | Why do you empty your distfiles directory? Have you no respect for the mirrors? |
Why keep all the packages that I may not need to reinstall |
|
Back to top |
|
|
arnvidr l33t
Joined: 19 Aug 2004 Posts: 629 Location: Oslo, Norway
|
Posted: Wed May 13, 2009 6:20 am Post subject: |
|
|
Order shouldn't matter, but I use
emerge -uNDav @world _________________
|
|
Back to top |
|
|
Ghost Raccoon n00b
Joined: 13 Mar 2009 Posts: 24 Location: Freiburg, Germany
|
Posted: Wed May 13, 2009 6:39 am Post subject: |
|
|
aditionally to Code: | eix-sync
emerge world -uDN
revdep-rebuild
emerge --depclean -a |
I run to clean up keep my packages.{keywords|unmask} from time to time _________________ Ghost Raccoon iz in ur fridge, eatin' ur foodz. |
|
Back to top |
|
|
tanderson Retired Dev
Joined: 11 Apr 2007 Posts: 193
|
Posted: Wed May 13, 2009 11:31 am Post subject: |
|
|
alistair wrote: | gentoofan23 wrote: | I do:
Code: | paludis -i world --dl-reinstall if-use-changed |
Sorta simple, I just wish there was a short option for the if-use-changed stuff. |
Have a enviroment variable PALUDIS_OPTIONS="--dl-reinstall if-use-changed" |
Yeah, I know all about that stuff, but I don't _always_ want that flag on which is why it's useful to have a short option for that. _________________ No Man is Just a Number!
--The Prisoner |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6053 Location: Removed by Neddy
|
|
Back to top |
|
|
alfagamma81 Tux's lil' helper
Joined: 22 Mar 2009 Posts: 86 Location: Finland
|
Posted: Wed May 13, 2009 12:22 pm Post subject: |
|
|
poly_poly-man wrote: | order doesn't matter.
I use -uDNav...
|
I know order doesnt matter, only interested to see how many possible combinations and ways people use to update their system.
my whole procedure is:
Code: | emerge --sync
emerge -pvuDN world
emerge -uDN world
cfg-update -um (if needed)
emerge -pv --depclean
emerge --depclean
revdep-rebuild
(sometimes eclean distfiles) |
|
|
Back to top |
|
|
marens Apprentice
Joined: 05 Aug 2004 Posts: 173
|
Posted: Wed May 13, 2009 1:47 pm Post subject: |
|
|
poly_poly-man wrote: | order doesn't matter.
I use -uDNav...
Code: | # DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXXOKjYpx installed on Mon Mar 30 16:12:16 2009)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
00 02 * * * eix-sync
30 02 * * * emerge -uDNv @system @world && emerge @preserved-rebuild && revdep-rebuild && echo "no need to worry" | mail -s "success" mkern@penguin |
|
is there a difference between emerge world and emerge @world? system is normally included in world so there would be no need to hand both to emerge! is there any updated docu on portage with sets?
edit:
btw i use
0.> eix-sync (daily via cron)
1.> emerge -uDNpvt @world
2.> inspect what must be done
3.> emerge -uDN @world
4.> etc-update (with meld as diff viewer) if configs need changes _________________ If English was good enough for Jesus, then it's good enough for you!
Last edited by marens on Wed May 13, 2009 2:30 pm; edited 1 time in total |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Wed May 13, 2009 1:56 pm Post subject: |
|
|
emerge world and emerge @world is equal I think.
It's only if you use portage 2.2, then you are able to use the set. |
|
Back to top |
|
|
Ahenobarbi Retired Dev
Joined: 02 Apr 2009 Posts: 345 Location: Warsaw, PL
|
Posted: Wed May 13, 2009 2:35 pm Post subject: |
|
|
Code: |
/etc/init.d/rdate restart
emerge --sync
emerge -avuND world
eclean-dist -d |
d2_racing wrote: | RedSquirrel wrote: | Why do you empty your distfiles directory? Have you no respect for the mirrors? |
Why keep all the packages that I may not need to reinstall |
Once or twice I regreted removing some sources I needed to compile while I had no network access ( eg. when I broke wpa_supplicant). |
|
Back to top |
|
|
slackline Veteran
Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Wed May 13, 2009 2:44 pm Post subject: |
|
|
d2_racing wrote: | RedSquirrel wrote: | Why do you empty your distfiles directory? Have you no respect for the mirrors? |
Why keep all the packages that I may not need to reinstall |
Because a patch might be applied to the portage tree, but still use the same version release, and you wouldn't then need to place demand on the server to download the same thing again???? Perhaps consider using eclean-dist and eclean-pkg instead as per below...
I have...
/etc/make.conf: |
FEATURES="parallel-fetch ccache"
EMERGE_DEFAULT_OPTS="--verbose --alphabetical --keep-going"
|
I don't sync with eix or portage as I have portage stored on my NSLU2 (a Linksys Network Add-on Storage device thats running SlugOS). Under that I have a cron jobs to sync portage and the overlays I use...
Code: |
# Mins Hours Days Months Day of the week
00 00 * * * rsync --recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages rsync://rsync.gentoo.org/gentoo-portage /usr/portage/
30 00 * * * /opt/bin/svn up "/usr/portage/local/layman/science/" "http://overlays.gentoo.org/svn/proj/science/overlay"
45 00 * * * /opt/bin/svn up "/usr/portage/local/layman/sunrise/" "http://overlays.gentoo.org/svn/proj/sunrise/reviewed"
00 01 * * * /opt/bin/svn up "/usr/portage/local/layman/perl-experimental/" "http://overlays.gentoo.org/svn/proj/perl/perl-experimental"
|
When I boot my desktop or laptop up I then routinely run...
Code: |
emerge -uDNa @world @system
dispatch-conf
emerge --depclean ; revdep-rebuild ; eclean-dist; eclean-pkg
|
Works well for me at least _________________ "Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth |
|
Back to top |
|
|
marens Apprentice
Joined: 05 Aug 2004 Posts: 173
|
Posted: Wed May 13, 2009 3:02 pm Post subject: |
|
|
Quote: |
Code: |
emerge -uDNa @world @system
dispatch-conf
emerge --depclean ; revdep-rebuild ; eclean-dist; eclean-pkg
|
Works well for me at least |
and again somebody who does world + system _________________ If English was good enough for Jesus, then it's good enough for you! |
|
Back to top |
|
|
slackline Veteran
Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Wed May 13, 2009 3:31 pm Post subject: |
|
|
marens wrote: | Quote: |
Code: |
emerge -uDNa @world @system
dispatch-conf
emerge --depclean ; revdep-rebuild ; eclean-dist; eclean-pkg
|
Works well for me at least |
and again somebody who does world + system |
Check out the documentation here and have a read through /usr/share/portage/config/sets.conf.....
/usr/share/portage/config/sets.conf: |
$ more /usr/share/portage/config/sets.conf
# WARNING: default set configuration, DO NOT CHANGE.
# If you want to change anything redefine the relevant section in
# /etc/portage/sets.conf. Any changes to this file will be lost on the next
# portage update, and configuration errors here might upset portage in
# unexpected ways.
# Not much that could be changed for world, so better leave it alone
[world]
class = portage.sets.files.WorldSet
world-candidate = False
# Same as for world, though later portage versions might use a different class
[system]
class = portage.sets.profiles.PackagesSystemSet
world-candidate = False
|
Thus at present there is no need to use '@world @system' but I've got into the habit of doing it in case things change in the future so I don't get bitten by not updating things.
Future proofing myself
slack _________________ "Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth |
|
Back to top |
|
|
NotQuiteSane Guru
Joined: 30 Jan 2005 Posts: 488 Location: Klamath Falls, Jefferson, USA, North America, Midgarth
|
Posted: Wed May 13, 2009 4:13 pm Post subject: |
|
|
I have emerge aliased to:
Code: | emerge='sudo ionice -c 3 emerge --jobs=6 --keep-going --load-average=25 --ask --tree -v' |
the last three options are pointless, as i install with
and update with
Code: | emerge -DuNavt world |
not the load average may not be proper. I wanted to keepit at a quarter of the load, but didn't rtfm/stfw to find proper ratings
NQS _________________ These opinions are mine, mine I say! Piss off and get your own.
As I see it -- An irregular blog, Improved with new location
To delete French language packs from system use 'sudo rm -fr /' |
|
Back to top |
|
|
|