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
- stdSourcesListFor :: DebianSuite -> Property
- stdSourcesList' :: DebianSuite -> [SourcesGenerator] -> Property
- setSourcesList :: [Line] -> Property
- setSourcesListD :: [Line] -> FilePath -> Property
- runApt :: [String] -> Property
- noninteractiveEnv :: [(String, String)]
- update :: Property
- upgrade :: Property
- type Package = String
- installed :: [Package] -> Property
- installed' :: [String] -> [Package] -> Property
- installedBackport :: [Package] -> Property
- installedMin :: [Package] -> Property
- removed :: [Package] -> Property
- buildDep :: [Package] -> Property
- buildDepIn :: FilePath -> Property
- robustly :: Property -> Property
- isInstallable :: [Package] -> IO Bool
- isInstalled :: Package -> IO Bool
- isInstalled' :: [Package] -> IO [Bool]
- autoRemove :: Property
- unattendedUpgrades :: RevertableProperty
- reConfigure :: Package -> [(String, String, String)] -> Property
- serviceInstalledRunning :: Package -> Property
- data AptKey = AptKey {}
- trustsKey :: AptKey -> RevertableProperty
- cacheCleaned :: Property
Documentation
type SourcesGenerator = DebianSuite -> [Line] Source
showSuite :: DebianSuite -> String Source
stdSections :: [Section] Source
securityUpdates :: SourcesGenerator Source
Only available for Stable and Testing
stdSourcesList :: Property Source
Makes sources.list have a standard content using the 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 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 etcaptsources.list.d
setSourcesList :: [Line] -> Property Source
setSourcesListD :: [Line] -> FilePath -> Property Source
noninteractiveEnv :: [(String, String)] Source
installed' :: [String] -> [Package] -> Property Source
installedBackport :: [Package] -> Property Source
installedMin :: [Package] -> Property Source
Minimal install of package, without recommends.
buildDepIn :: FilePath -> Property 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 -> Property 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 Source
Enables unattended upgrades. Revert to disable.
reConfigure :: Package -> [(String, String, String)] -> Property Source
Preseeds debconf values and reconfigures the package so it takes effect.
serviceInstalledRunning :: Package -> Property Source
Ensures that a service is installed and running.
Assumes that there is a 1:1 mapping between service names and apt package names.
cacheCleaned :: Property Source
Cleans apt's cache of downloaded packages to avoid using up disk space.