-   Gentoo (
-   -   package reinstalling (

Teufel 07-13-2012 02:55 PM

package reinstalling
Hey guys! I need a help again :)
I want to reinstall some of installed packages.
I read portage manual page, but this manual is the most confusing and frustrating manual that I have seen.

Can anyone exactly explain (with a small example) how to reinstall package? I want to reinstall package with another USE flags set.
For example: amarok installed with USE='dbus -debug' flags. How can I get amarok with USE='alsa lpc -dbus' flags? Should I remove package completly and install it again? If yes, is this enough:

emerge -unmerge amarok
USE="new_flags_set" emerge amarok

Or just

USE="new_flags_set" emerge amarok
without removing?


Teufel 07-14-2012 07:03 AM

it seems that nobody has ever reinstalled packages.

whizzit 07-14-2012 04:03 PM

The answer to your question is in the output of 'emerge --help' ;)

segmentation_fault 07-15-2012 12:09 PM

If you want a quick answer, then

USE="new_flags_set" emerge amarok
will reinstall with the new use flags. You can always read the man page of emerge, and first try with --pretend (-p for short).

fakie_flip 07-15-2012 11:32 PM

Assuming you have amd64 architecture because I don't know what you have, read


emerge -pv amarok
Then edit the /etc/portage/package.use


media-sound/amarok -kde -accessibility debug
(just an example, change yours)

Then emerge -pv amarok again, and it should show those changes. If you need more changes, go back and edit /etc/portage/package.use again.



emerge -av media-sound/amarok
The USE="some_flag" emerge amarok is a bad idea.


Editing the package.use file will insure that future upgrades of the software still have the same USE flags. package.use will override the settings only for specified flags of an individual package, override the ones from make.conf and the ones set by default (the defaults are set depending on which eselect profile set you used).

crupf 07-16-2012 04:57 AM

Yep, it should at least be

USE="$USE +some_flag -some_other_flag" emerge amarok
Better way would be writing USE flags into make.conf or /etc/portage/package.use...
And look for the --newuse parameter, but I think, it is given by default anyway.

i92guboj 07-18-2012 09:34 AM

The procedure is simpler than that.


emerge -pv <package_name>
Check the use flags, you only need to set those that you want to change from the ones in the output above. Now edit /etc/portage/package.use or /etc/make.conf, wherever you use to set the flags. If you use both you probably know what to do. Set the flags that you noted down in the step above, save, close.

Now just emerge -va that package, if you agree with the output press enter.

All times are GMT -5. The time now is 07:38 AM.