The article demonstrates the procedure to install PowerShell on Fedora 39. PowerShell, a powerful task automation framework developed by Microsoft, has become a go-to tool for developers and system administrators. Its robust scripting language and access to COM and WMI offer an integrated environment for managing and automating the administration of Windows systems.
Installation Process
Let’s now dive into the installation process.
Step 1: System Update
Before you install PowerShell, it’s crucial to update your system packages. Open your terminal and run the following commands:
sudo dnf clean all sudo dnf update
Step 2: Installing PowerShell
Microsoft provides a repository for installing PowerShell on Fedora. To add this repository, open your terminal and type the following command:
sudo dnf config-manager --add-repo https://packages.microsoft.com/config/fedora/39/prod.repo
The GPG key verifies the authenticity of the packages. You can import the key using the following command:
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
With the Microsoft repository added to your system, you’re now ready to install PowerShell. The DNF package manager simplifies this process with a single command:
sudo dnf install powershell
This command will download and install PowerShell along with any required dependencies.
After the installation is complete, it’s good practice to verify that PowerShell was installed correctly. You can do this by running the following command in your terminal:
pwsh --version
This command should display the PowerShell version information. If you see the version number, congratulations! You’ve successfully installed PowerShell on your Fedora 39 system.
Step 3: Accessing PowerShell
Accessing PowerShell on Fedora 39 is as simple as typing pwsh
into your terminal. This command will start a new PowerShell session, and you can begin running PowerShell commands and scripts.
If you no longer need PowerShell on your Fedora 39 system, you can uninstall it by running the following command:
sudo dnf remove powershell
Congratulations! You have successfully installed PowerShell.
If you find this process time-consuming or outside your area of expertise, you may consider our “VPS Manage Service Offer”, starting from $4. We accept Paypal payment. Please contact us to get the best deal!
We also offer Cloud VPS services at Shape.host. Our hosting solutions are efficient, scalable, and secure, making us a dependable expert in the field.