Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] The things I thought I knew about portage...
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
BobDylan
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2003
Posts: 135
Location: On The Road

PostPosted: Mon Mar 29, 2004 11:41 pm    Post subject: Reply with quote

I usually use
Code:
emerge -up `qpkg -I -nc`

to update all the packages on my system.
Back to top
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Fri Apr 02, 2004 8:19 am    Post subject: Re: wow... Reply with quote

the_y_man wrote:
bigcat99 wrote:
I've been doing it your old way as well, and so have all of my gentoo using friends... wow.... one thing i still have questions about... let's saying i'm using kde 3.2.0 for my wm, and I want to update all the packages on my system except for kde because i don't want to upgrade to kde 3.2.1 yet.... how? :?:


emerge --inject kde ......


it is not a good idea to inject packages.
to prevent portage from ugrading kde to 3.2.1 simply
put the followings in your /etc/portage/package.mask file
(should the file or dir or both not exist, just create them)
Code:

~kde-base/kde-3.2.1
~kde-base/kdeaccessibility-3.2.1
~kde-base/kdeaddons-3.2.1
~kde-base/kdeartwork-3.2.1
~kde-base/kdeedu-3.2.1
~kde-base/kdelibs-3.2.1
~kde-base/kdebase-3.2.1-r1
~kde-base/kdesdk-3.2.1-r1
~kde-base/kdegraphics-3.2.1
~kde-base/kdenetwork-3.2.1
~kde-base/kdemultimedia-3.2.1
~kde-base/kdepim-3.2.1
~kde-base/kdegames-3.2.1
~kde-base/kdeadmin-3.2.1
~kde-base/kdetoys-3.2.1
~kde-base/kdeutils-3.2.1
~kde-base/kde-i18n-3.2.1
~kde-base/arts-1.2.1

hth
Back to top
View user's profile Send private message
BlindSpy
Apprentice
Apprentice


Joined: 20 Mar 2004
Posts: 263

PostPosted: Wed Apr 28, 2004 10:02 pm    Post subject: Reply with quote

I've found another problem with 'revdep-rebuild'. If you've installed any programs manually (without emerge), it just ends the 'revdep-rebuild' command and you cant achieve anything.

I'm still looking for a way around this if anyone can help me out.
Back to top
View user's profile Send private message
Nate_S
Guru
Guru


Joined: 18 Mar 2004
Posts: 414

PostPosted: Thu Apr 29, 2004 9:00 am    Post subject: Reply with quote

I found it usefull to --inject the java-sdk-docs, which openoffice depends on if you have the +docs use flag set, but it has fetch restrictions, so you have to go to sun's site and download the distfile yourself. I've been too lazy to do so as I am not developing java, and since it's just documentation, injecting it shouldn't break your system. It has it's uses, but caution is still advised.

-Nate
Back to top
View user's profile Send private message
BlindSpy
Apprentice
Apprentice


Joined: 20 Mar 2004
Posts: 263

PostPosted: Thu Apr 29, 2004 7:35 pm    Post subject: Reply with quote

There's a bug in gentoo and if you depclean without 'acl' in your USE var, your system is very screwed. BEFORE YOU DO THIS - MAKE SURE acl IS IN YOUR USE VAR!

https://bugs.gentoo.org/show_bug.cgi?id=48195

If you dont, you wont be able to use crucial commands like ls, cp, mv, and EMERGE!
Back to top
View user's profile Send private message
Wi1d
Apprentice
Apprentice


Joined: 15 Mar 2004
Posts: 282
Location: USA, Iowa

PostPosted: Wed May 05, 2004 9:22 pm    Post subject: Reply with quote

I got the same problem with 'revdep-rebuild' BlindSpy. I got around it because /usr/local is on its own partition and I unmounted it. Don't know if that will help with your situation.
Back to top
View user's profile Send private message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Thu May 06, 2004 12:30 am    Post subject: Reply with quote

I suggest -UDv rather than -uDv, the uppercase U stops stuff getting downgraded.
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
Kioshen
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2003
Posts: 109
Location: Montreal, PQ

PostPosted: Thu May 06, 2004 2:51 am    Post subject: Reply with quote

That's a really really bad idea charlieg. I won't repeat what was already done in a clear manner so go read this message :)

Why emerge -U will kill your Gentoo
_________________
-= United we share =-

Adopt an unanswered post today!
Why emerge -U will kill your Gentoo
Back to top
View user's profile Send private message
Wolven
Guru
Guru


Joined: 05 Aug 2003
Posts: 325
Location: Norway

PostPosted: Wed Jun 02, 2004 4:33 pm    Post subject: Reply with quote

Nice tips.
I cleand up my system a bit, but when I try to run 'revdep-rebuild' I get:
Code:
bash: revdep-rebuild: command not found


Any ideas to why I don't have a 'revdep' command? :?
Back to top
View user's profile Send private message
patsonrt1
Tux's lil' helper
Tux's lil' helper


Joined: 21 Mar 2003
Posts: 104
Location: Somewhere in my head

PostPosted: Wed Jun 02, 2004 11:42 pm    Post subject: Reply with quote

Wolven wrote:
Nice tips.
I cleand up my system a bit, but when I try to run 'revdep-rebuild' I get:
Code:
bash: revdep-rebuild: command not found


Any ideas to why I don't have a 'revdep' command? :?


Code:
emerge gentoolkit
:wink:

Thanks jbNet for the tips!
_________________
"Well fine, go ahead and miss church, and when you die and go to hell you can answer to SATAN!"

"Ok"

-fortune
Back to top
View user's profile Send private message
RedBeard0531
Guru
Guru


Joined: 21 Sep 2002
Posts: 415
Location: maryland

PostPosted: Thu Jun 03, 2004 3:05 am    Post subject: Reply with quote

Why I think your assumptions are wrong:

Gentoo is about choice. For the most part, there is no right or wrong way to emerge. Different meathods apply in differant situations. -U is a perfect example. It is great for those who use -* ebuids. Or in cases where your arch isnt listed in KEYWORDS. This is commen for non x86 people, as I am now discovering with my AMD64 system. Also I think more people should put ~arch in thier make.conf, and yout sugestions dis courage that. I say that b/c ~arch is for testing and very rarly breaks. In fact the only majopr problems Ive enountered were from a -* glibc. There more people that use ~ the more stable the "stable" system. Ther problems that arise are rare, and when reported, can improve on the product. lets not become a debien where we all follow the false assumption that if it is newer it must be less stable. Infact there have been several cases where the ~ version was more stable than the "stable" version. Remember. bug fixes only go into NEW versions!

ps: emerge -pv is (IMO) better than equery uses. infact I have "alias emerge="emerge -v" in my .bashrc. it has no negative impact.
_________________
OH MY GOD! Kenny just killed Kenny!
That Basterd!
Back to top
View user's profile Send private message
BlindSpy
Apprentice
Apprentice


Joined: 20 Mar 2004
Posts: 263

PostPosted: Mon Jun 07, 2004 11:48 pm    Post subject: Reply with quote

I'm going to have to agree with this: I've been using ACCEPT_KEYWORDS="~x86" and -U together for a while and nothing bad has happend at all. I read that thread about why it was so bad and to be honest... i didnt really see the guys point. I'm going to stick with not downgrading.

RedBeard0531 wrote:
Why I think your assumptions are wrong:

Gentoo is about choice. For the most part, there is no right or wrong way to emerge. Different meathods apply in differant situations. -U is a perfect example. It is great for those who use -* ebuids. Or in cases where your arch isnt listed in KEYWORDS. This is commen for non x86 people, as I am now discovering with my AMD64 system. Also I think more people should put ~arch in thier make.conf, and yout sugestions dis courage that. I say that b/c ~arch is for testing and very rarly breaks. In fact the only majopr problems Ive enountered were from a -* glibc. There more people that use ~ the more stable the "stable" system. Ther problems that arise are rare, and when reported, can improve on the product. lets not become a debien where we all follow the false assumption that if it is newer it must be less stable. Infact there have been several cases where the ~ version was more stable than the "stable" version. Remember. bug fixes only go into NEW versions!

ps: emerge -pv is (IMO) better than equery uses. infact I have "alias emerge="emerge -v" in my .bashrc. it has no negative impact.
Back to top
View user's profile Send private message
jbNet
n00b
n00b


Joined: 07 Oct 2003
Posts: 39
Location: Oregon, USA

PostPosted: Tue Jul 20, 2004 8:18 pm    Post subject: Reply with quote

I've been away from the forums for awhile, and didn't realize how much attention this post had been getting, let me respond to a few posts:

Quote:
I suggest -UDv rather than -uDv, the uppercase U stops stuff getting downgraded.


As I said in the origional post, if you do it right there will be no downgrades, and if there is one then it's notifying you of a problem which you can then fix by adding someting to package.keywords perhaps.

Quote:
Why is your way better? Isn't the whole point in -U to save me the trouble of having to keep up a package.keywords file? And furthermore, doing the packages.keyword file method means that I will always be running the "unstable" version of openoffice-ximian, instead of just once, which is what I usually want.

Perhaps I am missing someting?


The point of using package.keywords instead of -U is so that the unstable package will continue to update when it gets updated in portage. Since this is not what you want, than yes you want to use ACCEPT_KEYWORDS and -U, you aren't missing anything.

Quote:
For the most part, there is no right or wrong way to emerge.


This is of course true. This method is intended for people who like myself run a standard x86 machine, and want to keep their packages updated and their package database clean. For people who don't want to fuss with updates every day (or twice a day sometimes :oops:) it might be easier to do things another way. (or people w/ strange arch issues, I haven't had to deal with that)

~Jake B
_________________
~Jake B
Back to top
View user's profile Send private message
geosparkle
n00b
n00b


Joined: 20 Jul 2004
Posts: 1

PostPosted: Tue Jul 20, 2004 8:52 pm    Post subject: Reply with quote

I love you jbNet !!!!!
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Tue Jul 20, 2004 9:45 pm    Post subject: Reply with quote

RedBeard0531 wrote:
Why I think your assumptions are wrong:

Gentoo is about choice. For the most part, there is no right or wrong way to emerge. Different meathods apply in differant situations. -U is a perfect example. It is great for those who use -* ebuids. Or in cases where your arch isnt listed in KEYWORDS. This is commen for non x86 people, as I am now discovering with my AMD64 system. Also I think more people should put ~arch in thier make.conf, and yout sugestions dis courage that. I say that b/c ~arch is for testing and very rarly breaks. In fact the only majopr problems Ive enountered were from a -* glibc. There more people that use ~ the more stable the "stable" system. Ther problems that arise are rare, and when reported, can improve on the product. lets not become a debien where we all follow the false assumption that if it is newer it must be less stable. Infact there have been several cases where the ~ version was more stable than the "stable" version. Remember. bug fixes only go into NEW versions!

ps: emerge -pv is (IMO) better than equery uses. infact I have "alias emerge="emerge -v" in my .bashrc. it has no negative impact.


I disagree with you on the -* and AMD64 stuff. Want to use a -* glibc? No problem:

Code:
echo "sys-libs/glibc -*" >> /etc/portage/package.keywords
emerge -uv glibc


And hey presto! A -* glibc. And you get upgrades too, unless you do:

Code:
echo "=sys-libs/glibc-20040619 -*" >> /etc/portage/package.keywords
emerge -uv glibc


And then you get your -* glibc, but no upgrades. Dead easy. Got AMD64 problems? Got an ebuild with a missing keyword? Well, that's no problem either. An example would be x11-plugins/desklet-psidisplays:

Code:
echo "x11-plugins/desklet-psidisplays ~x86" >> /etc/portage/package.keywords
emerge -v desklet-psidisplays


emerge -U is still a fundamentally broken idea. It leaves people's systems with open security holes or, for example, a broken rsync (which is fairly critical on a Gentoo system!). It horribly breaks the depgraph creation. It's a filthy hack to work around a filthy hack that arose because of a filthy hack (I think that's right, I'll have to check).

Finally, RedBeard0531 - having the emerge = emerge -v alias will spit out far too much info from "emerge info" if you try to submit a bug report. Please remember that if you do so; I suspect that, despite your rantings about ~arch in make.conf, you probably haven't done so usefully yet? If you've got stuff missing the ~amd64 keyword compiled, installed and working on AMD64, then please submit a bug report.

Finally, Debian Stable is a distribution which never breaks the API or ABI - it doesn't actually claim to be any more stable than Debian Experimental. Obviously testing that sort of thing takes a huge amount of time, however. But anything you installed the day you set up that Debian Stable box will still work the day you get rid of it. Well, either that or someone on the Stable team will be losing dev status :twisted:
_________________
Reality is for those who can't face Science Fiction.

emerge -U will kill your Gentoo
ecatmur, Lord of Portage Bash Scripts
Back to top
View user's profile Send private message
tom56
Guru
Guru


Joined: 27 Apr 2004
Posts: 325
Location: united kingdom

PostPosted: Wed Jul 21, 2004 7:39 pm    Post subject: Reply with quote

i knew this already, but thank you anyway jbNet, as the more posts on this subject the better. i don't understand why none of the posts on this have been stickyed, as even if you don't agree with the method here, it is important to know you have the choice. i have been using this method since reading robmoss2k's post on the subject. i think that an portage cheat sheet would be great. i don't know enough to write it myself, but if someone else did that would be great. in the meantime here's another tip:

to specify a use flag for just one package, make the file /etc/portage/package.use and add packages and use flags to that in the same way you would for package.keywords. for example:
Code:
dev-lang/python tcltk
if you want python (but only python) to compile with tcl/tk, or of course if you want python to be the only package that doesn't compile with tcl/tk you could add
Code:
dev-lang/python -tcltk
Back to top
View user's profile Send private message
johntramp
Guru
Guru


Joined: 03 Feb 2004
Posts: 457
Location: New Zealand

PostPosted: Sun Sep 19, 2004 3:05 am    Post subject: Re: [TIP] The things I thought I knew about portage... Reply with quote

jbNet wrote:

To clean up unwanted packages on your system:
Code:
vim /var/cache/edb/world
# Remove anything you don't want anymore
emerge depclean -p
emerge depclean
rm -f ~/.revdep*
revdep-rebuild -p
revdep-rebuild


I do not have a /var/cache/edb/world file ?? :S

Quote:
odysseus john # cd /var/cache/edb/
odysseus edb # ll
total 37K
-rw-rw-r-- 1 root portage 22K Sep 19 04:38 config
-rw-r--r-- 1 root root 4 Sep 19 14:53 counter
drwxrwsr-x 3 root portage 104 Sep 19 14:49 dep
-rw-rw-r-- 1 root portage 1.2K Sep 19 14:54 mtimedb
-rw-rw-r-- 1 root portage 1.4K Sep 19 04:35 virtuals
odysseus edb #


I remember having a world file somewhere else. Am I supposed to move that to this location?


Thanks
Back to top
View user's profile Send private message
johntramp
Guru
Guru


Joined: 03 Feb 2004
Posts: 457
Location: New Zealand

PostPosted: Sun Sep 19, 2004 5:54 am    Post subject: Reply with quote

I found a file, /var/lib/portage/world which seems to contain everything I have emerge'd, should I copy this to /var/cache/edb/world ?
Back to top
View user's profile Send private message
zerojay
Veteran
Veteran


Joined: 09 Aug 2003
Posts: 1033

PostPosted: Sun Sep 19, 2004 4:31 pm    Post subject: Reply with quote

Also, -U is deprecated and will most likely be removed sometime in the near future.
Back to top
View user's profile Send private message
kernelcowboy
Guru
Guru


Joined: 14 Feb 2004
Posts: 391
Location: New Plymouth, New Zealand

PostPosted: Fri Oct 01, 2004 12:09 am    Post subject: Reply with quote

ok. that was quite an effort, but all is quiet after a monster -uDpv world. considering emerge depclean. scared. here's what it wants to remove. anyone see anything extra bad to remove in there?

Notes: i run fluxbox, no gnome or kde. and, i'm not trying to get anyone to do my homework for me. this is more of an sanity check, thanks!

To be removed:

    x11-themes/gnome-icon-theme
    media-libs/mpeg-lib
    app-shells/tcsh
    x11-libs/startup-notification
    gnome-base/gnome-libs
    sys-apps/hotplug
    media-libs/gdk-pixbuf
    dev-util/yacc
    media-sound/cdparanoia
    sys-apps/hotplug-base
    gnome-base/orbit
    sys-apps/usbutils
    sys-apps/pciutils
    x11-themes/hicolor-icon-theme


here's my world file

    dev-java/java-config
    dev-util/ctags
    media-video/ogle
    sys-libs/gpm
    x11-plugins/wmCalClock
    sys-fs/reiserfsprogs
    sys-fs/xfsprogs
    net-www/netscape-flash
    dev-java/ant
    net-misc/rdesktop
    app-text/xpdf
    sys-apps/fileutils
    media-libs/libpng
    x11-base/xfree
    app-editors/vi
    dev-db/mysql
    x11-libs/gtk+
    dev-java/sun-jdk
    net-www/mplayerplug-in
    sys-devel/gettext
    media-sound/mp3blaster
    media-tv/atitvout
    media-video/mplayer
    net-dns/bind-tools
    media-sound/xmms
    net-im/amsn
    x11-misc/fluxconf
    dev-dotnet/mono
    media-libs/fontconfig
    net-www/mozilla-firefox
    x11-plugins/wmxmms
    sys-boot/grub
    dev-java/commons-logging
    x11-terms/eterm
    media-gfx/gimp
    app-misc/rox
    net-misc/netkit-telnetd
    x11-plugins/wmnetload
    sys-kernel/gentoo-sources
    net-analyzer/mtr
    dev-libs/glib
    app-office/openoffice-bin
    app-sci/units
    sys-apps/pcmcia-cs
    dev-util/cvs
    net-www/lynx
    dev-java/blackdown-jdk
    sys-apps/textutils
    net-analyzer/netselect
    media-video/lsdvd
    app-editors/jedit
    sys-apps/sh-utils
    app-admin/syslog-ng
    app-editors/nano
    dev-libs/expat
    sys-apps/module-init-tools
    x11-libs/pango
    sys-apps/vixie-cron
    x11-wm/fluxbox
    net-www/mozilla-launcher
    app-portage/gentoolkit
    media-gfx/imagemagick
    x11-terms/aterm
    x11-base/opengl-update
    x11-plugins/wmnet
    app-portage/mirrorselect
    app-arch/cabextract


thanks![/list]
Back to top
View user's profile Send private message
TrueDFX
Retired Dev
Retired Dev


Joined: 02 Jun 2004
Posts: 1348

PostPosted: Fri Oct 01, 2004 10:45 am    Post subject: Reply with quote

johntramp wrote:
I found a file, /var/lib/portage/world which seems to contain everything I have emerge'd, should I copy this to /var/cache/edb/world ?

No, it's fine where it is. portage 2.0.51 changed the location of the world file, but it works exactly the same way.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum