PowerShell Core এবং PowerShell 7 এর ইন্সটলেশন গাইড

PowerShell Installation এবং Setup - মাইক্রোসফট পাওয়ারশেল (Powershell) - Microsoft Technologies

391

PowerShell Core (PowerShell 6) এবং PowerShell 7 হল PowerShell-এর ক্রস-প্ল্যাটফর্ম সংস্করণ। PowerShell 7, PowerShell Core এর পরবর্তী সংস্করণ হিসেবে এসেছে এবং এর মধ্যে অনেক উন্নতি ও নতুন বৈশিষ্ট্য রয়েছে। PowerShell 7 ক্রস-প্ল্যাটফর্ম (Windows, macOS, Linux) সমর্থন করে, যার মাধ্যমে আপনি একে যেকোনো পরিবেশে ব্যবহার করতে পারেন। নিচে PowerShell Core এবং PowerShell 7 ইনস্টল করার বিস্তারিত গাইড দেওয়া হলো।


PowerShell Core (PowerShell 6) এবং PowerShell 7 ইনস্টলেশন

PowerShell Core বা PowerShell 7 ইনস্টল করার পদ্ধতি বিভিন্ন প্ল্যাটফর্মে আলাদা হয়ে থাকে। নিচে Windows, macOS, এবং Linux-এর জন্য ইনস্টলেশন পদ্ধতি বিস্তারিতভাবে দেওয়া হয়েছে।


Windows-এ PowerShell Core এবং PowerShell 7 ইনস্টল করা

Windows-এ PowerShell 7 বা PowerShell Core ইনস্টল করার জন্য বিভিন্ন পদ্ধতি রয়েছে। আপনি Microsoft Store, Windows Package Manager (winget) অথবা GitHub থেকে সরাসরি MSI ফাইল ডাউনলোড করে ইনস্টল করতে পারেন।

1. Windows Package Manager (winget) ব্যবহার করে PowerShell 7 ইনস্টল করা:

Windows 10 এবং পরবর্তী সংস্করণে winget (Windows Package Manager) ব্যবহার করে PowerShell 7 সহজে ইনস্টল করা যেতে পারে।

winget install --id Microsoft.Powershell --source winget

2. Microsoft Store থেকে PowerShell 7 ইনস্টল করা:

  • Microsoft Store খুলুন এবং "PowerShell" সার্চ করুন।
  • PowerShell 7 অ্যাপ্লিকেশনটি ইনস্টল করুন।

3. PowerShell GitHub থেকে MSI ইনস্টলার ব্যবহার করে ইনস্টল করা:

PowerShell 7 এর সর্বশেষ সংস্করণ ইনস্টল করতে আপনি PowerShell GitHub রিপোজিটরি থেকে MSI ফাইল ডাউনলোড করে ইনস্টল করতে পারেন।

  1. PowerShell এর GitHub Release Page এ যান।
  2. Windows-এর জন্য MSI ফাইল ডাউনলোড করুন।
  3. MSI ফাইলটি চালু করুন এবং স্ক্রীনের নির্দেশনা অনুসরণ করে ইনস্টলেশন সম্পন্ন করুন।

macOS-এ PowerShell Core এবং PowerShell 7 ইনস্টল করা

macOS-এ PowerShell 7 ইনস্টল করার জন্য সবচেয়ে সহজ পদ্ধতি হলো Homebrew ব্যবহার করা। Homebrew macOS-এর জন্য একটি জনপ্রিয় প্যাকেজ ম্যানেজার, যার মাধ্যমে PowerShell ইনস্টল করা যায়।

1. Homebrew ব্যবহার করে PowerShell 7 ইনস্টল করা:

  1. Homebrew ইনস্টল করুন (যদি না থাকে):

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  2. PowerShell ইনস্টল করুন:

    brew install --cask powershell
    
  3. PowerShell চালু করুন: ইনস্টলেশনের পর, pwsh কমান্ড ব্যবহার করে PowerShell চালু করুন:

    pwsh
    

Ubuntu (Debian-based) এবং Linux-এ PowerShell Core এবং PowerShell 7 ইনস্টল করা

PowerShell Core এবং PowerShell 7 Ubuntu, CentOS, RHEL, Fedora সহ বিভিন্ন Linux ডিস্ট্রিবিউশনে ইনস্টল করা যায়। নিচে Ubuntu ডিস্ট্রিবিউশনের জন্য ইনস্টলেশন গাইড দেওয়া হল।

1. Ubuntu (Debian-based) এ PowerShell 7 ইনস্টল করা:

  1. প্রাথমিক প্যাকেজ আপডেট করা:

    sudo apt-get update
    sudo apt-get install -y wget apt-transport-https software-properties-common
    
  2. Microsoft প্যাকেজ রিপোজিটরি যোগ করা:

    wget -q "https://packages.microsoft.com/config/ubuntu/20.04/prod.list" -O /etc/apt/sources.list.d/microsoft-prod.list
    
  3. Microsoft প্যাকেজ কী যোগ করা:

    wget -q "https://packages.microsoft.com/keys/microsoft.asc" -O- | sudo apt-key add -
    
  4. PowerShell ইনস্টল করা:

    sudo apt-get update
    sudo apt-get install -y powershell
    
  5. PowerShell চালু করা:

    pwsh
    

2. CentOS/RHEL (Red Hat-based) এ PowerShell 7 ইনস্টল করা:

  1. Microsoft রিপোজিটরি সেটআপ করা:

    sudo curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo
    
  2. PowerShell ইনস্টল করা:

    sudo yum install -y powershell
    
  3. PowerShell চালু করা:

    pwsh
    

3. Fedora (Red Hat-based) এ PowerShell 7 ইনস্টল করা:

  1. Microsoft রিপোজিটরি যোগ করা:

    sudo curl https://packages.microsoft.com/config/fedora/32/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo
    
  2. PowerShell ইনস্টল করা:

    sudo dnf install -y powershell
    
  3. PowerShell চালু করা:

    pwsh
    

PowerShell 7 কনফিগারেশন এবং ব্যবহারের পরামর্শ

PowerShell 7 ইনস্টল করার পর, কিছু প্রাথমিক কনফিগারেশন করা যেতে পারে যেমন Execution Policy সেট করা, স্ক্রিপ্ট রান করার জন্য অনুমতি দেওয়া, অথবা প্রোফাইল কনফিগারেশন। এই কনফিগারেশনগুলির মাধ্যমে PowerShell ব্যবহারের অভিজ্ঞতা আরও ভালো করা সম্ভব।

1. Execution Policy চেক ও পরিবর্তন করা:

PowerShell এর Execution Policy চেক করতে নিচের কমান্ডটি ব্যবহার করতে পারেন:

Get-ExecutionPolicy

Execution Policy পরিবর্তন করতে:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

2. PowerShell প্রোফাইল কনফিগারেশন:

PowerShell প্রোফাইল ফাইলটি আপনার কাস্টম ফাংশন, ভেরিয়েবল, অ্যালিয়াস ইত্যাদি লোড করতে সাহায্য করে। এটি এডিট করতে:

notepad.exe $PROFILE

PowerShell 7 এর মাধ্যমে আপনি একটি শক্তিশালী এবং ক্রস-প্ল্যাটফর্ম স্ক্রিপ্টিং এবং অটোমেশন পরিবেশ পাবেন, যা Windows, macOS এবং Linux-এর উপর কাজ করে।

Content added By
Promotion

Are you sure to start over?

Loading...