Gentoo/emerge
< Gentoo
emerge
Pretend to install a package:
emerge --pretend <package>
Install a package:
emerge --ask <package>
Uninstall:
emerge --ask --unmerge <package>
Search:
emerge --search <package>
View changelog:
emerge --pretend --changelog <package>
Sometimes a package cannot be installed, because it is masked:
$ emerge cachefilesd Calculating dependencies... done! [ebuild N ~] sys-fs/cachefilesd-0.10.5 USE="-doc (-selinux)" The following keyword changes are necessary to proceed: #required by cachefilesd (argument) =sys-fs/cachefilesd-0.10.5 ~x86 Use --autounmask-write to write changes to config files (honoring CONFIG_PROTECT).
We can force emerge to install from the testing branch (marked with a "~"):
$ ACCEPT_KEYWORDS="~x86" emerge cachefilesd
>>> Emerging (1 of 1) sys-fs/cachefilesd-0.10.5
>>> Installing (1 of 1) sys-fs/cachefilesd-0.10.5
[...]
Clean up distfiles:
eclean distfiles
ebuild
TBD...
eselect
TBD...
Troubleshooting
gcc-config: Active gcc profile is invalid!
This happened:
$ gcc --version * gcc-config: Active gcc profile is invalid! gcc-config: error: could not run/locate 'gcc'
The trick was to:
$ gcc-config -l * gcc-config: Active gcc profile is invalid! [1] i686-pc-linux-gnu-4.6.3 $ gcc-config i686-pc-linux-gnu-4.6.3 $ . /etc/profile $ emerge gcc >>> Emerging (1 of 1) sys-devel/gcc-4.6.3 [...]
The following USE changes are necessary to proceed
This happened:
$ emerge --autounmask sci-visualization/gnuplot
Calculating dependencies... done!
[ebuild R ] media-libs/gd-2.0.35-r3 USE="png*"
[ebuild N ] sci-visualization/gnuplot-4.6.1 USE="gd readline -X -bitmap \
-cairo -doc -emacs -examples -ggi -latex -lua -plotutils -qt4 \
-svga -thin-splines -wxwidgets -xemacs"
The following USE changes are necessary to proceed:
#required by sci-visualization/gnuplot-4.6.1[gd], required by sci-visualization/gnuplot (argument)
>=media-libs/gd-2.0.35-r3 png
Use --autounmask-write to write changes to config files (honoring CONFIG_PROTECT).
The solution was to add the proposed line to /etc/portage/package.use/media-libs:
=media-libs/gd-2.0.35-r3 png