Safe Haskell | None |
---|---|
Language | Haskell98 |
- sourcesList :: FilePath
- type Url = String
- type Section = String
- type SourcesGenerator = DebianSuite -> [Line]
- showSuite :: DebianSuite -> String
- backportSuite :: DebianSuite -> Maybe String
- stableUpdatesSuite :: DebianSuite -> Maybe String
- debLine :: String -> Url -> [Section] -> Line
- srcLine :: Line -> Line
- stdSections :: [Section]
- binandsrc :: String -> SourcesGenerator
- debCdn :: SourcesGenerator
- kernelOrg :: SourcesGenerator
- securityUpdates :: SourcesGenerator
- stdSourcesList :: Property Debian
- stdSourcesListFor :: DebianSuite -> Property Debian
- stdSourcesList' :: DebianSuite -> [SourcesGenerator] -> Property Debian
- setSourcesList :: [Line] -> Property DebianLike
- setSourcesListD :: [Line] -> FilePath -> Property DebianLike
- runApt :: [String] -> UncheckedProperty DebianLike
- noninteractiveEnv :: [(String, String)]
- update :: Property DebianLike
- upgrade :: Property DebianLike
- upgrade' :: String -> Property DebianLike
- safeUpgrade :: Property DebianLike
- pendingConfigured :: Property DebianLike
- type Package = String
- installed :: [Package] -> Property DebianLike
- installed' :: [String] -> [Package] -> Property DebianLike
- installedBackport :: [Package] -> Property Debian
- installedMin :: [Package] -> Property DebianLike
- removed :: [Package] -> Property DebianLike
- buildDep :: [Package] -> Property DebianLike
- buildDepIn :: FilePath -> Property DebianLike
- robustly :: Property DebianLike -> Property DebianLike
- isInstallable :: [Package] -> IO Bool
- isInstalled :: Package -> IO Bool
- isInstalled' :: [Package] -> IO [Bool]
- autoRemove :: Property DebianLike
- unattendedUpgrades :: RevertableProperty DebianLike DebianLike
- periodicUpdates :: Property DebianLike
- type DebconfTemplate = String
- type DebconfTemplateType = String
- type DebconfTemplateValue = String
- reConfigure :: Package -> [(DebconfTemplate, DebconfTemplateType, DebconfTemplateValue)] -> Property DebianLike
- serviceInstalledRunning :: Package -> Property DebianLike
- data AptKey = AptKey {}
- trustsKey :: AptKey -> RevertableProperty DebianLike DebianLike
- trustsKey' :: AptKey -> Property DebianLike
- untrustKey :: AptKey -> Property DebianLike
- aptKeyFile :: AptKey -> FilePath
- cacheCleaned :: Property DebianLike
- hasForeignArch :: String -> Property DebianLike
- dpkgStatus :: FilePath
Documentation
type SourcesGenerator = DebianSuite -> [Line] Source
showSuite :: DebianSuite -> String Source
stdSections :: [Section] Source
securityUpdates :: SourcesGenerator Source
Only available for Stable and Testing
stdSourcesList :: Property Debian Source
Makes sources.list have a standard content using the Debian mirror CDN, with the Debian suite configured by the os.
Since the CDN is sometimes unreliable, also adds backup lines using kernel.org.
stdSourcesList' :: DebianSuite -> [SourcesGenerator] -> Property Debian Source
Adds additional sources.list generators.
Note that if a Property needs to enable an apt source, it's better to do so via a separate file in /etc/apt/sources.list.d/
setSourcesList :: [Line] -> Property DebianLike Source
setSourcesListD :: [Line] -> FilePath -> Property DebianLike Source
runApt :: [String] -> UncheckedProperty DebianLike Source
noninteractiveEnv :: [(String, String)] Source
update :: Property DebianLike Source
Have apt update its lists of packages, but without upgrading anything.
upgrade :: Property DebianLike Source
Have apt upgrade packages, adding new packages and removing old as
necessary. Often used in combination with the update
property.
upgrade' :: String -> Property DebianLike Source
safeUpgrade :: Property DebianLike Source
Have apt upgrade packages, but never add new packages or remove old packages. Not suitable for upgrading acrocess major versions of the distribution.
pendingConfigured :: Property DebianLike Source
Have dpkg try to configure any packages that are not fully configured.
installed :: [Package] -> Property DebianLike Source
installed' :: [String] -> [Package] -> Property DebianLike Source
installedBackport :: [Package] -> Property Debian Source
installedMin :: [Package] -> Property DebianLike Source
Minimal install of package, without recommends.
removed :: [Package] -> Property DebianLike Source
buildDep :: [Package] -> Property DebianLike Source
buildDepIn :: FilePath -> Property DebianLike Source
Installs the build deps for the source package unpacked in the specifed directory, with a dummy package also installed so that autoRemove won't remove them.
robustly :: Property DebianLike -> Property DebianLike Source
Package installation may fail becuse the archive has changed. Run an update in that case and retry.
isInstallable :: [Package] -> IO Bool Source
isInstalled :: Package -> IO Bool Source
isInstalled' :: [Package] -> IO [Bool] Source
Note that the order of the returned list will not always correspond to the order of the input list. The number of items may even vary. If apt does not know about a package at all, it will not be included in the result list.
unattendedUpgrades :: RevertableProperty DebianLike DebianLike Source
Enables unattended upgrades. Revert to disable.
periodicUpdates :: Property DebianLike Source
Enable periodic updates (but not upgrades), including download of packages.
type DebconfTemplate = String Source
type DebconfTemplateType = String Source
type DebconfTemplateValue = String Source
reConfigure :: Package -> [(DebconfTemplate, DebconfTemplateType, DebconfTemplateValue)] -> Property DebianLike Source
Preseeds debconf values and reconfigures the package so it takes effect.
serviceInstalledRunning :: Package -> Property DebianLike Source
Ensures that a service is installed and running.
Assumes that there is a 1:1 mapping between service names and apt package names.
trustsKey' :: AptKey -> Property DebianLike Source
untrustKey :: AptKey -> Property DebianLike Source
aptKeyFile :: AptKey -> FilePath Source
cacheCleaned :: Property DebianLike Source
Cleans apt's cache of downloaded packages to avoid using up disk space.
hasForeignArch :: String -> Property DebianLike Source
Add a foreign architecture to dpkg and apt.