View previous topic :: View next topic |
Author |
Message |
BigRedDot n00b
Joined: 29 Oct 2002 Posts: 67 Location: Austin
|
Posted: Tue Feb 04, 2003 6:02 am Post subject: never upgrading a package |
|
|
I am wondering how I can let portage know that I never want to upgrade a certain package. I positively can't stand the interface to emacs 21.2, no matter what build options and widget sets I try setting in the ebuild. I hacked together an ebuild for emacs 20.7 and I would like portage to stop telling me I need to upgrade it, since I never will. _________________ Even if you are one-in-a-million, there are still 6000 people just like you. |
|
Back to top |
|
|
phong Bodhisattva
Joined: 16 Jul 2002 Posts: 778 Location: Michigan - 15 & Ryan
|
Posted: Tue Feb 04, 2003 6:11 am Post subject: |
|
|
You could add a line to /usr/portage/profiles/package.mask. It gets tossed with emerge rsync, but I have a little perl script that I run after each rsync to make some changes for packages that I unmask manually. The script for your situation would be a simple shell script (not tested):
Code: | #!/bin/sh
echo ">app-editors/emacs-20.7" >> /usr/portage/profiles/package.mask |
_________________ "An empty head is not really empty; it is stuffed with rubbish. Hence the difficulty of forcing anything into an empty head."
-- Eric Hoffer |
|
Back to top |
|
|
BigRedDot n00b
Joined: 29 Oct 2002 Posts: 67 Location: Austin
|
Posted: Tue Feb 04, 2003 4:43 pm Post subject: |
|
|
Updating packages.mask every single time there's and emerge rsync is really the best solution? I guess I just assumed there had to be a simple way to specify packages that portage is not to touch. Oh well. _________________ Even if you are one-in-a-million, there are still 6000 people just like you. |
|
Back to top |
|
|
choenig Tux's lil' helper
Joined: 04 Nov 2002 Posts: 83 Location: EDDK, Germany
|
Posted: Tue Feb 04, 2003 9:58 pm Post subject: |
|
|
How about using the --oneshot option of emerge?
Code: |
--oneshot
Emerge as normal, but don't add packages to the world profile for later updating. This prevents consideration of this package unless this package is depended upon by another package.
|
Or did I miss your question?
take care, have fun
/christian |
|
Back to top |
|
|
tecknojunky Veteran
Joined: 19 Oct 2002 Posts: 1937 Location: Montréal
|
Posted: Tue Feb 04, 2003 10:22 pm Post subject: |
|
|
nevertheless wrote: | How about using the --oneshot option of emerge?
Code: |
--oneshot
Emerge as normal, but don't add packages to the world profile for later updating. This prevents consideration of this package unless this package is depended upon by another package.
|
Or did I miss your question?
take care, have fun
/christian |
That should go in the tips and tricks. _________________ (7 of 9) Installing star-trek/species-8.4.7.2::talax. |
|
Back to top |
|
|
|