12 #ifndef ZYPP_ZCONFIG_H 13 #define ZYPP_ZCONFIG_H 19 #include <zypp/APIConfig.h> 20 #include <zypp/base/NonCopyable.h> 21 #include <zypp/base/PtrTypes.h> 25 #include <zypp/Pathname.h> 27 #include <zypp/TriBool.h> 71 std::ostream &
about( std::ostream &
str )
const;
578 #endif // ZYPP_ZCONFIG_H
bool hasUserData() const
Whether a (non empty) user data sting is defined.
static Locale defaultTextLocale()
The autodetected preferred locale for translated texts.
Pathname repoSolvfilesPath() const
Path where the repo solv files are created and kept (repoCachePath()/solv).
Pathname credentialsGlobalDir() const
Defaults to /etc/zypp/credentials.d.
Pathname builtinRepoPackagesPath() const
The builtin config file value.
void setGpgCheck(bool val_r)
Change the value.
std::ostream & about(std::ostream &str) const
Print some detail about the current libzypp version.
bool download_use_deltarpm_always() const
Whether to consider using a deltarpm even when rpm is local.
void setUpdateMessagesNotify(const std::string &val_r)
Set a new command definition (see update.messages.notify in zypp.conf).
void resetSystemArchitecture()
Reset the zypp system architecture to the default.
void setRepoGpgCheck(TriBool val_r)
Change the value.
Pathname knownReposPath() const
Path where the known repositories .repo files are kept (configPath()/repos.d).
long download_transfer_timeout() const
Maximum time in seconds that you allow a transfer operation to take.
static ZConfig & instance()
Singleton ctor.
long download_max_download_speed() const
Maximum download speed (bytes per second)
Locale textLocale() const
The locale for translated texts zypp uses.
bool repoLabelIsAlias() const
Whether to use repository alias or name in user messages (progress, exceptions, ...).
Pathname update_scriptsPath() const
Path where the repo metadata is downloaded and kept (update_dataPath()/).
void setRepoPackagesPath(const Pathname &path_r)
Set a new path as the default repo cache path.
Pathname varsPath() const
Path containing custom repo variable definitions (configPath()/vars.d).
ResolverFocus
The resolver's general attitude.
Pathname pubkeyCachePath() const
Path where the pubkey caches.
Pathname builtinRepoMetadataPath() const
The builtin config file value.
bool repo_add_probe() const
Whether repository urls should be probed.
String related utilities and Regular expression matching.
void removeMultiversionSpec(const std::string &name_r)
void setSystemArchitecture(const Arch &arch_r)
Override the zypp system architecture.
unsigned solver_upgradeTestcasesToKeep() const
When committing a dist upgrade (e.g.
Pathname vendorPath() const
Directory for equivalent vendor definitions (configPath()/vendors.d)
bool setUserData(const std::string &str_r)
Set a new userData string.
void set_download_mediaMountdir(Pathname newval_r)
Set alternate value.
bool solver_dupAllowArchChange() const
DUP tune: Whether to allow package arch changes upon DUP.
void resetSolverUpgradeRemoveDroppedPackages()
Reset solverUpgradeRemoveDroppedPackages to the zypp.conf default.
std::string userData() const
User defined string value to be passed to log, history, plugins...
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
Pointer to implementation.
const std::set< std::string > & multiversionSpec() const
void set_default_download_mediaMountdir()
Reset to zypp.cong default.
void addMultiversionSpec(const std::string &name_r)
void resetGpgCheck()
Reset to the zconfig default.
void set_download_media_prefer_download(bool yesno_r)
Set download_media_prefer_download to a specific value.
bool solverUpgradeRemoveDroppedPackages() const
Whether dist upgrade should remove a products dropped packages (true).
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
DownloadMode commit_downloadMode() const
Commit download policy to use as default.
LocaleSet repoRefreshLocales() const
List of locales for which translated package descriptions should be downloaded.
Pathname download_mediaMountdir() const
Path where media are preferably mounted or downloaded.
Pathname repoManagerRoot() const
The RepoManager root directory.
void setTextLocale(const Locale &locale_r)
Set the preferred locale for translated texts.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
TriBool pkgGpgCheck() const
Check rpm package signatures (indeterminate - according to gpgcheck)
Pathname solver_checkSystemFileDir() const
Directory, which may or may not contain files in which dependencies described which has to be fulfill...
void set_default_download_media_prefer_download()
Set download_media_prefer_download to the configfiles default.
Pathname solver_checkSystemFile() const
File in which dependencies described which has to be fulfilled for a running system.
Pathname locksFile() const
Path where zypp can find or create lock file (configPath()/locks)
unsigned repo_refresh_delay() const
Amount of time in minutes that must pass before another refresh.
bool gpgCheck() const
Turn signature checking on/off (on)
Pathname repoCachePath() const
Path where the caches are kept (/var/cache/zypp)
bool solver_dupAllowVendorChange() const
DUP tune: Whether to allow package vendor changes upon DUP.
Interim helper class to collect global options and settings.
Pathname credentialsGlobalFile() const
Defaults to /etc/zypp/credentials.cat.
bool solver_dupAllowDowngrade() const
DUP tune: Whether to allow version downgrades upon DUP.
TriBool repoGpgCheck() const
Check repo matadata signatures (indeterminate - according to gpgcheck)
bool apply_locks_file() const
Whether locks file should be read and applied after start (true)
bool solver_dupAllowNameChange() const
DUP tune: Whether to follow package renames upon DUP.
Pathname needrebootPath() const
Path where the custom needreboot config files are kept (configPath()/needreboot.d).
Pathname update_dataPath() const
Path where the update items are kept (/var/adm)
void clearMultiversionSpec()
Pathname repoPackagesPath() const
Path where the repo packages are downloaded and kept (repoCachePath()/packages).
long download_max_silent_tries() const
Maximum silent tries.
target::rpm::RpmInstFlags rpmInstallFlags() const
The default target::rpm::RpmInstFlags for ZYppCommitPolicy.
Pathname update_messagesPath() const
Path where the repo solv files are created and kept (update_dataPath()/solv).
bool solver_onlyRequires() const
Solver regards required packages,patterns,...
Pathname configPath() const
Path where the configfiles are kept (/etc/zypp).
'Language[_Country]' codes.
Pathname builtinRepoSolvfilesPath() const
The builtin config file value.
static Arch defaultSystemArchitecture()
The autodetected system architecture.
void resetRepoGpgCheck()
Reset to the zconfig default.
ResolverFocus solver_focus() const
The resolver's general attitude when resolving jobs.
bool solver_cleandepsOnRemove() const
Whether removing a package should also remove no longer needed requirements.
bool download_media_prefer_download() const
Hint which media to prefer when installing packages (download vs.
Pathname needrebootFile() const
Path of the default needreboot config file (configPath()/needreboot).
bool download_media_prefer_volatile() const
Pathname historyLogFile() const
Path where ZYpp install history is logged.
Wrapper for const correct access via Smart pointer types.
std::string distroverpkg() const
Package telling the "product version" on systems not using /etc/product.d/baseproduct.
void resetTextLocale()
Reset the locale for translated texts to the default.
std::string multiversionKernels() const
void setRepoMetadataPath(const Pathname &path_r)
Set a new path as the default repo cache path.
Pathname knownServicesPath() const
Path where the known services .service files are kept (configPath()/services.d).
void resetUpdateMessagesNotify()
Reset to the zypp.conf default.
Arch systemArchitecture() const
The system architecture zypp uses.
void setSolverUpgradeRemoveDroppedPackages(bool val_r)
Set solverUpgradeRemoveDroppedPackages to val_r.
std::string updateMessagesNotify() const
Command definition for sending update messages.
Pathname systemRoot() const
The target root directory.
Pathname builtinRepoCachePath() const
The builtin config file value.
void setPkgGpgCheck(TriBool val_r)
Change the value.
bool solver_allowVendorChange() const
Whether vendor check is by default enabled.
Easy-to use interface to the ZYPP dependency resolver.
void setRepoSolvfilesPath(const Pathname &path_r)
Set a new path as the default repo cache path.
void notifyTargetChanged()
internal
bool download_use_deltarpm() const
Whether to consider using a deltarpm when downloading a package.
std::unordered_set< Locale > LocaleSet
void setRepoCachePath(const Pathname &path_r)
Set a new path as the default repo cache path.
void setRepoManagerRoot(const Pathname &root)
Sets the RepoManager root directory.
Pathname pluginsPath() const
Defaults to /usr/lib/zypp/plugins.
void resetPkgGpgCheck()
Reset to the zconfig default.
Pathname repoMetadataPath() const
Path where the repo metadata is downloaded and kept (repoCachePath()/raw).
long download_min_download_speed() const
Minimum download speed (bytes per second) until the connection is dropped.
long download_max_concurrent_connections() const
Maximum number of concurrent connections for a single transfer.
DownloadMode
Supported commit download policies.