update freebsd

This commit is contained in:
JMARyA 2024-03-27 15:03:38 +01:00
parent 78a0539c8c
commit 940734cae7
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -1,16 +1,42 @@
--- ---
website: https://www.freebsd.org website: https://www.freebsd.org
obj: os obj: os
rev: 2024-03-01 rev: 2024-03-27
--- ---
# FreeBSD # 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. 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
Pkg is the Package Manager on BSDs Pkg is the Package Manager on BSDs, offering a sophisticated set of tools for managing software installations, updates, and dependencies on FreeBSD systems.
#refactor -> add pkg usage
- **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 <package>`: Installs the specified package and its dependencies.
- `pkg search <term>`: 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 <package>`: 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
`mdconfig` lets you create and control memory disks. `mdconfig` lets you create and control memory disks.