def METHOD_NAME(self, fake=False):
    """Install .modulerc file."""
    modfile_path = self.module_generator.get_module_filepath(fake=fake)
    modulerc = os.path.join(os.path.dirname(modfile_path), self.module_generator.DOT_MODULERC)
    deps = self.cfg['dependencies']
    if len(deps) != 1:
        raise EasyBuildError("There should be exactly one dependency specified, found %d", len(deps))
    # names should match
    if self.name != deps[0]['name']:
        raise EasyBuildError("Name does not match dependency name: %s vs %s", self.name, deps[0]['name'])
    # ensure version to alias to is a prefix of the version of the dependency
    if not deps[0]['version'].startswith(self.version) and not self.version == "default":
        raise EasyBuildError("Version is not 'default' and not a prefix of dependency version: %s vs %s",
                             self.version, deps[0]['version'])
    alias_modname = deps[0]['short_mod_name']
    self.log.info("Adding module version alias for %s to %s", alias_modname, modulerc)
    # add symlink to wrapped module file when generating .modulerc in temporary directory (done during sanity check)
    # this is strictly required for Lmod 6.x, for which .modulerc and wrapped module file must be in same location
    if fake:
        wrapped_mod_path = self.modules_tool.modulefile_path(alias_modname)
        wrapped_mod_filename = os.path.basename(wrapped_mod_path)
        target = os.path.join(os.path.dirname(modulerc), wrapped_mod_filename)
        mkdir(os.path.dirname(target), parents=True)
        symlink(wrapped_mod_path, target)
    module_version_specs = {
        'modname': alias_modname,
        'sym_version': self.version,
        'version': deps[0]['version'],
    }
    self.module_generator.modulerc(module_version=module_version_specs, filepath=modulerc)
    if not fake:
        print_msg("updated .modulerc file at %s" % modulerc, log=self.log)
        # symlink .modulerc in other locations (unless they're already linked)
        mod_symlink_dirs = ActiveMNS().det_module_symlink_paths(self.cfg)
        mod_subdir = os.path.dirname(ActiveMNS().det_full_module_name(self.cfg))
        mod_install_path = install_path('mod')
        modulerc_filename = os.path.basename(modulerc)
        for mod_symlink_dir in mod_symlink_dirs:
            modulerc_symlink = os.path.join(mod_install_path, mod_symlink_dir, mod_subdir, modulerc_filename)
            if os.path.islink(modulerc_symlink):
                if resolve_path(modulerc_symlink) == resolve_path(modulerc):
                    print_msg("symlink %s to %s already exists", modulerc_symlink, modulerc)
                else:
                    raise EasyBuildError("%s exists but is not a symlink to %s", modulerc_symlink, modulerc)
            else:
                # Make sure folder exists
                mkdir(os.path.dirname(modulerc_symlink), parents=True)
                symlink(modulerc, modulerc_symlink)
                print_msg("created symlink %s to .modulerc file at %s", modulerc_symlink, modulerc, log=self.log)
    modpath = self.module_generator.get_modules_path(fake=fake)
    self.invalidate_module_caches(modpath)
    return modpath