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 4,098 2/8/2024
1.3.0 1,530 10/12/2023
1.2.0 611 9/8/2023
1.1.0 663 7/18/2023
1.0.0 214 5/25/2023
0.4.0-previe... (current version) 115 3/16/2023
0.3.0-previe... 41 3/22/2022
0.2.1-previe... 18 1/13/2022
0.2.1-previe... 15 7/2/2021
0.2.1-previe... 13 7/2/2021
0.2.0 418 5/25/2021
0.2.0-previe... 13 5/24/2021
0.2.0-previe... 18 4/15/2021
0.2.0-previe... 17 4/7/2021
0.1.1-previe... 14 4/7/2021
0.1.1-previe... 20 4/6/2021
0.1.1-previe... 15 4/3/2021
0.1.1-previe... 14 4/3/2021
0.1.1-previe... 15 4/2/2021
Show less