LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices

Reply
 
Search this Thread
Old 07-13-2012, 01:55 PM   #1
Teufel
Member
 
Registered: Apr 2012
Distribution: debian, gentoo
Posts: 55

Rep: Reputation: 2
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:
Code:
emerge -unmerge amarok
USE="new_flags_set" emerge amarok
Or just
Code:
USE="new_flags_set" emerge amarok
without removing?

Thanks
 
Old 07-14-2012, 06:03 AM   #2
Teufel
Member
 
Registered: Apr 2012
Distribution: debian, gentoo
Posts: 55

Original Poster
Rep: Reputation: 2
it seems that nobody has ever reinstalled packages.
 
Old 07-14-2012, 03:03 PM   #3
whizzit
Member
 
Registered: Aug 2004
Location: UK
Distribution: Gentoo, OpenBSD, Debian, FreeBSD, RHEL, CentOS
Posts: 65

Rep: Reputation: 24
The answer to your question is in the output of 'emerge --help'
 
Old 07-15-2012, 11:09 AM   #4
segmentation_fault
Member
 
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Rep: Reputation: 54
If you want a quick answer, then
Code:
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).
 
Old 07-15-2012, 10:32 PM   #5
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,440

Rep: Reputation: 80
Assuming you have amd64 architecture because I don't know what you have, read
http://www.gentoo.org/doc/en/handboo...?part=2&chap=1

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

Code:
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.

Then

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

EDIT:


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).

Last edited by fakie_flip; 07-16-2012 at 08:51 AM. Reason: Additional info
 
Old 07-16-2012, 03:57 AM   #6
crupf
LQ Newbie
 
Registered: Jul 2012
Location: 127.0.0.1
Distribution: Gentoo
Posts: 4

Rep: Reputation: Disabled
Yep, it should at least be
Code:
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.

Last edited by crupf; 07-16-2012 at 03:59 AM.
 
Old 07-18-2012, 08:34 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,036

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
The procedure is simpler than that.

Do:
Code:
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
reinstalling the rpm build package Linden Goodwin Linux - Newbie 1 06-28-2009 06:44 PM
[SOLVED] Reinstalling GRUB without Reinstalling my Distro MBA Whore Linux - Newbie 8 03-15-2008 08:39 PM
Reinstalling a package and its dependencies nx5000 Debian 11 04-19-2007 11:42 AM
Reinstalling LFS For Every New Package? g3neration Linux From Scratch 2 01-04-2005 02:51 AM
reinstalling a package Cyric Slackware 4 10-02-2004 12:01 PM


All times are GMT -5. The time now is 03:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration