ports-tools-0.0.1: Library to interact with port tools on FreeBSD

LicenseFreeBSD
Maintainerpenzin.dev@gmail.com
Stabilityexperimental
Portabilitynon-portable (FreeBSD specific)
Safe HaskellSafe-Inferred
LanguageHaskell98

Config.FreeBSD.PortTools

Contents

Description

Module to check existence and interact with various port and package tools

Synopsis

Functions

Check for Portmater

isPortmasterPresent :: IO Bool Source

Check whether portmaster is installed by looking if we can run the command

Check for PkgTools (portupgrade and the like)

isPkgToolsPresent :: IO Bool Source

Check whether pkgtools is installed by looking if we can run portupgrade command

Check for PkgNG (newer package tool)

isPkgNgPresent :: IO Bool Source

Check whether pkgNG is installed by looking if we can run pkg command

Check for Pkg (older package tool)

isPkgPresent :: IO Bool Source

Check for pre-NG package manager

Upgrade a port using portmaster

upgradeWithPortmaster :: String -> IO () Source

Upgrade a single port with portmaster

Upgrade a port using portupgrade

upgradeWithPortupgrade :: String -> IO () Source

Upgrade a single port with portupgrade

Upgrade a port using make command

upgradeWithMake :: String -> IO () Source

Upgrade a single port using Make