User Configuration

These files are found in the CONFIG_DIR (as displayed by portmod <prefix> info). This is typically one of the following locations, depending on your platform.




C:\Documents and Settings\<User>\Application Data\Local Settings\portmod\portmod\<prefix> or C:\Documents and Settings\<User>\Application Data\portmod\portmod\<prefix>


The file {CONFIG_DIR}/package.accept_license can be used to allow the installation of packages with a license which is not accepted using the global ACCEPT_LICENSE setting.


The file {CONFIG_DIR}/package.accept_keywords can be used to configure the visibility of packages via their Keywords.


The file {CONFIG_DIR}/package.mask can be used to prevent certain packages from being installed.


The file {CONFIG_DIR}/package.use can be used to configure Use Flags for individual packages or package versions.


The {CONFIG_DIR}/portmod.conf file is used for configuring Portmod’s global options.


The profile symlink points to the first directory of your Profile.


The user profile directory can be used to customize your Profile. This is recommended only for advanced users.


The repos.cfg file in the portmod config directory (See portmod.conf) can be used to specify the various repositories that Portmod pulls information from.


You can create your own Sets by adding set files to the sets directory in the CONFIG_DIR. A set file is a file where the filename (no file extension) corresponds to the set name, and the contents are a newline-separated list of mod atoms. Set files can also include comments (lines starting with #).