nxtools

0.4.0-preview0001

Collection of Posix tools wrappers.

Minimum PowerShell version

6.2

This is a prerelease version of nxtools.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name nxtools -RequiredVersion 0.4.0-preview0001 -AllowPrerelease

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name nxtools -Version 0.4.0-preview0001 -Prerelease

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) Microsoft. All rights reserved.

Package Details

Author(s)

  • Gael Colas

Tags

linux sysadmin helper

Functions

Compress-nxArchive Expand-nxArchive Add-nxFileLine Invoke-nxFileContentReplace Remove-nxFileLine Compare-nxMode Get-nxChildItem Get-nxItem Set-nxGroupOwnership Set-nxMode Set-nxOwner Find-nxAptPackageFromCache Install-nxAptPackage Remove-nxAptPackage Update-nxAptPackageCache Get-nxDpkgPackage Get-nxDpkgPackageInstalled Find-nxYumPackage Get-nxYumPackage Get-nxYumPackageInstalled Install-nxYumPackage Remove-nxYumPackage Find-nxPackage Get-nxPackage Get-nxPackageInstalled Get-nxSupportedPackageType Install-nxPackage Remove-nxPackage Disable-nxService Enable-nxService Get-nxService Restart-nxService Start-nxService Stop-nxService Get-nxDistributionInfo Get-nxKernelInfo Get-nxLSBRelease Add-nxLocalGroupMember Add-nxLocalUserToGroup Disable-nxLocalUser Enable-nxLocalUser Get-nxEtcShadow Get-nxLocalGroup Get-nxLocalUser Get-nxLocalUserMemberOf New-nxLocalGroup New-nxLocalUser Remove-nxLocalGroup Remove-nxLocalGroupMember Remove-nxLocalUser Set-nxLocalGroup Set-nxLocalGroupGID Set-nxLocalGroupMember Set-nxLocalUser

DSCResources

nxFile nxGroup nxUser nxPackage nxFileLine nxFileContentReplace nxService GC_LinuxGroup GC_msid110 GC_msid121 GC_msid232 GC_InstalledApplicationLinux GC_NotInstalledApplicationLinux GC_LinuxLogAnalyticsAgent

PSEditions

Core

Dependencies

This module has no dependencies.

Release Notes

## [0.4.0-preview0001] - 2023-03-16

### Added

- Added KitchenCI tests for the packages on ubuntu-18.04, debian-10, and centos-7.5.
- Added the `Functions` test suite for Kitchen-Pester.
- Added `[nxFileLine]` and `[nxFileContentReplace]` DSC Resources to manage file content.
- Added examples for DSC Resources.
- Added GC Packages to the GitHub release publish step.
- Added cmdlets for Packages:
   - `Get-nxPackageInstalled`: Getting the installed package basic info, automatically finding the Package Manager.
   - `Get-nxYumPackageInstalled`: Getting the installed yum/rpm package basic info.
   - `Get-nxDpkgPackageInstalled`: Getting the installed dpkg/apt package basic info.
   - `Get-nxPackage`: Getting the installed package detailed info, automatically finding the Package Manager.
   - `Get-nxYumPackage`: Getting the installed yum/rpm package detailed info.
   - `Get-nxDpkgPackage`: Getting the installed dpkg/apt package detailed info.

- Added the DSC Resources classes
   - `nxUser`
   - `nxGroup`
   - `nxFile`
   - `nxArchive`
   - `nxPackage`
   - `nxFileLine`
   - `nxFileContentReplace`

- Added GC policy config for creating GC packages
   - InstalledApplicationLinux
   - NotInstalledApplicationLinux
   - linuxGroupsMustExclude
   - linuxGroupsMustInclude
   - msid110
   - msid121
   - msid232

### Fixed

- Fixed the issue on centos/red hat where the MODE contains a trailing `.`.
- Relying on ModuleVersion from Module manifest.

### Changed

- Setting up official pipeline.

### Removed

- Disabling changelog tests because of the way the private repo fetches and errors on the `git diff`.

FileList

Version History

Version Downloads Last updated
1.4.0 1,403 2/8/2024
1.3.0 1,449 10/12/2023
1.2.0 607 9/8/2023
1.1.0 653 7/18/2023
1.0.0 207 5/25/2023
0.4.0-previe... (current version) 112 3/16/2023
0.3.0-previe... 38 3/22/2022
0.2.1-previe... 15 1/13/2022
0.2.1-previe... 12 7/2/2021
0.2.1-previe... 10 7/2/2021
0.2.0 410 5/25/2021
0.2.0-previe... 10 5/24/2021
0.2.0-previe... 15 4/15/2021
0.2.0-previe... 14 4/7/2021
0.1.1-previe... 11 4/7/2021
0.1.1-previe... 17 4/6/2021
0.1.1-previe... 12 4/3/2021
0.1.1-previe... 11 4/3/2021
0.1.1-previe... 12 4/2/2021
Show less