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