From 940734cae7590342b99c8e46b997e73239da306d Mon Sep 17 00:00:00 2001 From: JMARyA Date: Wed, 27 Mar 2024 15:03:38 +0100 Subject: [PATCH] update freebsd --- technology/bsd/FreeBSD.md | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/technology/bsd/FreeBSD.md b/technology/bsd/FreeBSD.md index 128d528..ccf65d2 100644 --- a/technology/bsd/FreeBSD.md +++ b/technology/bsd/FreeBSD.md @@ -1,16 +1,42 @@ --- website: https://www.freebsd.org obj: os -rev: 2024-03-01 +rev: 2024-03-27 --- # FreeBSD -#wip #🐇 #notnow #bsd FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features (using [ZFS](../linux/filesystems/ZFS.md) natively) have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices. ## pkg -Pkg is the Package Manager on BSDs -#refactor -> add pkg usage +Pkg is the Package Manager on BSDs, offering a sophisticated set of tools for managing software installations, updates, and dependencies on FreeBSD systems. + +- **Repositories**: FreeBSD supports multiple package repositories, including the official FreeBSD repository and third-party repositories like FreeBSD Ports Collection or custom repositories. Users can configure repositories using `/etc/pkg/FreeBSD.conf` or by creating their own repository configurations. + +- **Dependency Resolution**: Pkg automatically resolves dependencies when installing or upgrading packages, ensuring that all required dependencies are installed or updated to compatible versions. + +- **Version Pinning**: Users can pin specific package versions to prevent automatic upgrades. This feature is useful for maintaining compatibility with specific software configurations or ensuring stability in production environments. + +- **Package Flags**: Pkg supports package flags to customize package installation behavior. Flags allow users to enable or disable specific features or dependencies for individual packages. + +- **Audit and Security**: Pkg includes features for auditing installed packages to identify vulnerabilities and security issues. Users can run `pkg audit` to check for vulnerabilities in installed packages and take appropriate actions to mitigate risks. + +- **Package Configuration**: Some packages require configuration during installation. Pkg provides tools to manage package configuration files, including merging changes during upgrades and managing configuration files for multiple package versions. + +- **Package Downgrades**: In certain scenarios, users may need to downgrade packages to previous versions. Pkg supports downgrading packages while resolving dependencies and ensuring system integrity. + +- **Package Locking**: Administrators can lock specific packages to prevent accidental modification or removal. Package locking is useful for critical system components or packages that should remain unchanged for stability reasons. + + +### Usage +- `pkg install `: Installs the specified package and its dependencies. +- `pkg search `: Searches for packages matching the given search term. +- `pkg update`: Updates the local package repository, ensuring access to the latest package information. +- `pkg upgrade`: Upgrades installed packages to their latest available versions. +- `pkg info`: Lists all installed packages on the system. +- `pkg remove `: Uninstalls the specified package from the system. +- `pkg autoremove`: Removes orphaned packages, i.e., packages that were installed as dependencies but are no longer needed by any installed package. +- `pkg clean`: Cleans the local package cache, freeing up disk space by removing old package files. +- `pkg audit`: Checks installed packages for known vulnerabilities and security issues. ## mdconfig `mdconfig` lets you create and control memory disks.