Portage Advanced Usage: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
This article lists some neat things you can do with Portage/emerge. | This article lists some neat things you can do with Portage/emerge. | ||
= /etc/portage directory = | |||
This directory contains important configuration files for Portage. | This directory contains important configuration files for Portage. | ||
Line 13: | Line 13: | ||
* Note that on these two files, each line must contain only the package name and the options. Don't add any comment (comments must use a whole line) after the package name and options. | * Note that on these two files, each line must contain only the package name and the options. Don't add any comment (comments must use a whole line) after the package name and options. | ||
= Portage world file = | |||
It is located in /var/lib/portage/world. | It is located in /var/lib/portage/world. | ||
= emerge options = | |||
* --newuse will recompile packages that had their USE flags changed. | * --newuse will recompile packages that had their USE flags changed. | ||
Line 24: | Line 24: | ||
* To emerge a particular version of a package: emerge =mypackage-0.6.3-r2 | * To emerge a particular version of a package: emerge =mypackage-0.6.3-r2 | ||
= Gentoolkit = | |||
* equery files ''ebuild_name'' will list all the files installed by the specified ebuild. | * equery files ''ebuild_name'' will list all the files installed by the specified ebuild. | ||
= Profiles = | |||
* Profiles contain default configuration values and settings. | * Profiles contain default configuration values and settings. | ||
* For a server machine, don't use the server profile. It is not yet production-ready. Use the generic profile, eg default/linux/x86/2008.0 (for a desktop box, use default/linux/x86/2008.0/desktop). | * For a server machine, don't use the server profile. It is not yet production-ready. Use the generic profile, eg default/linux/x86/2008.0 (for a desktop box, use default/linux/x86/2008.0/desktop). | ||
= Useful Links = | |||
* [http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=3 Portage Features] | * [http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=3 Portage Features] | ||
* [http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3 Working with Portage] | * [http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3 Working with Portage] | ||
* [http://www.gentoo.org/dyn/use-index.xml An online list of USE flags] | * [http://www.gentoo.org/dyn/use-index.xml An online list of USE flags] |
Revision as of 11:44, 10 January 2009
This article lists some neat things you can do with Portage/emerge.
/etc/portage directory
This directory contains important configuration files for Portage.
- package.keywords lets you add keywords for individual packages.
- package.use lets you add local USE flags for certain packages. To add/remove certain languages, you can use expanded USE flags:
USE="linguas_en -linguas_fr"
- Note that on these two files, each line must contain only the package name and the options. Don't add any comment (comments must use a whole line) after the package name and options.
Portage world file
It is located in /var/lib/portage/world.
emerge options
- --newuse will recompile packages that had their USE flags changed.
- --depclean will attempt to remove packages that are no longer needed as dependencies.
- -t will display a tree view. It can be very useful to know which package pulls in another one.
- To emerge a particular version of a package: emerge =mypackage-0.6.3-r2
Gentoolkit
- equery files ebuild_name will list all the files installed by the specified ebuild.
Profiles
- Profiles contain default configuration values and settings.
- For a server machine, don't use the server profile. It is not yet production-ready. Use the generic profile, eg default/linux/x86/2008.0 (for a desktop box, use default/linux/x86/2008.0/desktop).