3.0 University logo
  • Home
  • About us
  • All Courses
    • Cybersecurity Programs
      • Certified Ethical Hacker (CEH v13)
      • Certified SOC Analyst
      • Certified Penitration Testing Professional
      • Computer Hacking Forensic Investigator
      • Certified Cybersecurity Technician (CCT)
      • Certified AI Program Manager
      • Certified Offensive AI Security Professional
      • Certified Responsible AI Governance & Ethics Professional
      • Artificial Intelligence Essentials
    • Crypto Market Programs
    • Blockchain & Web3 Programs
      • Digital Assets Trading & Analysis Program
      • Certified Web3 Strategy & Growth Specialist
      • Certified Web3 Governance & Compliance Expert
      • Full Stack Blockchain Developer Program
      • Private Blockchain Developer Program
      • Public Blockchain Developer Program
    • Designs Programs
      • Jewellery Design Executive Program
      • Gems & Diamond Specialist Program
      • Jewellery Business Specialist Program
  • Schools
    • School of Decentralized Economics
    • School of Cyber Resilience
    • School of Intelligent Systems
    • School of Design Thinking
  • Partners
    • Certification & Knowledge Partner
    • Academic Partner
    • Hiring Partner
    • Delivery Partner
    • Affiliate Partner
    • Hybrid Center Partner
  • Blog
  • 3.0 TV
  • Home
  • About us
  • All Courses
    • Cybersecurity Programs
      • Certified Ethical Hacker (CEH v13)
      • Certified SOC Analyst
      • Certified Penitration Testing Professional
      • Computer Hacking Forensic Investigator
      • Certified Cybersecurity Technician (CCT)
      • Certified AI Program Manager
      • Certified Offensive AI Security Professional
      • Certified Responsible AI Governance & Ethics Professional
      • Artificial Intelligence Essentials
    • Crypto Market Programs
    • Blockchain & Web3 Programs
      • Digital Assets Trading & Analysis Program
      • Certified Web3 Strategy & Growth Specialist
      • Certified Web3 Governance & Compliance Expert
      • Full Stack Blockchain Developer Program
      • Private Blockchain Developer Program
      • Public Blockchain Developer Program
    • Designs Programs
      • Jewellery Design Executive Program
      • Gems & Diamond Specialist Program
      • Jewellery Business Specialist Program
  • Schools
    • School of Decentralized Economics
    • School of Cyber Resilience
    • School of Intelligent Systems
    • School of Design Thinking
  • Partners
    • Certification & Knowledge Partner
    • Academic Partner
    • Hiring Partner
    • Delivery Partner
    • Affiliate Partner
    • Hybrid Center Partner
  • Blog
  • 3.0 TV
    Login
    ₹0.00 0 Cart

    Learn Articles

    • Home
    • Learn Articles

    How to Install Software on Linux: apt, .deb Files and Dev Tools

    • Posted by 3.0 University
    • Date July 14, 2026
    • Comments 0 comment

    To install software on Linux (Ubuntu/Debian), run sudo apt update then sudo apt install <package-name>. The package manager fetches, verifies, and installs the software with all dependencies automatically. For .deb files, use sudo dpkg -i filename.deb. This guide covers apt, pip, Docker, Java, Python, Node.js, Git, and more with exact copy-paste commands.

    • apt is the default package manager on Ubuntu and Debian; it handles dependencies automatically.
    • You can install .deb files manually using dpkg when a package is not in the official repos.
    • PPAs (Personal Package Archives) let you add third-party repositories for newer software versions.
    • Snap is an alternative to apt for sandboxed, self-updating app packages.
    • Tools like Docker, pip, and virtualenv are day-one skills for any DevOps engineer.

    What Is apt in Linux and How Does the Package Manager Model Work

    apt stands for Advanced Package Tool. It is the command-line package manager used on Ubuntu, Debian, Linux Mint, Kali Linux, and every other Debian-based distribution. When you type sudo apt install git, apt contacts a remote repository, downloads the correct binary for your architecture, checks its GPG signature, resolves every dependency, and installs everything in the right order.

    This is fundamentally different from downloading an installer on Windows. There is no “next, next, finish” wizard. The package manager handles all of that logic for you, which is why Linux environments are so popular in server and DevOps contexts. In India, major IT services firms including TCS, Infosys, and Wipro run their backend infrastructure predominantly on Linux, making apt literacy a practical requirement for engineers entering those environments.

    Core apt Commands You Will Use Every Day

    • sudo apt update – refreshes the local package index from remote repos.
    • sudo apt upgrade – upgrades all installed packages to their latest versions.
    • sudo apt install <package> – installs a new package.
    • sudo apt remove <package> – removes a package but keeps config files.
    • sudo apt purge <package> – removes a package and its config files.
    • apt search <keyword> – searches available packages by name or description.

    Always run sudo apt update before installing anything. If you skip this, apt may try to install an outdated version or fail to find the package at all. Note that apt-get and apt are functionally similar; apt is the recommended modern interface for interactive use, while apt-get is preferred in scripts for its stable output format.

    apt vs snap vs Manual .deb Installation

    Method Best For Dependency Handling Update Mechanism Approx. Package Availability
    apt Server and dev tools Automatic sudo apt upgrade 60,000+ packages (Ubuntu repos)
    snap Desktop apps, sandboxed tools Bundled inside snap Auto-updates in background 7,000+ snaps (Snap Store)
    dpkg (.deb file) Vendor packages not in repos Manual (use apt -f install to fix) Manual re-download Vendor-specific only
    PPA Newer versions of apt packages Automatic via apt sudo apt upgrade Varies by maintainer

    According to the Stack Overflow Developer Survey 2024, Ubuntu is the most-used Linux distribution among professional developers globally, with over 29% of respondents using it as their primary OS. That makes knowing how to install software in Linux using apt essentially non-negotiable for anyone entering software engineering or DevOps.

    Linux Developer Tool Installation Commands (Ubuntu 22.04 / 24.04)

    The commands below are tested on Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. Most will work identically on Debian 12 and Linux Mint 21. If you are on Kali Linux, apt works the same way since Kali is Debian-based.

    How to Install Java on Linux

    The easiest way to install Java on Linux is through apt using the OpenJDK package. For Java 17 (the current LTS release widely used in enterprise and Android development):

    • sudo apt update
    • sudo apt install openjdk-17-jdk
    • Verify with: java -version

    If you need Java 11 for an older project, replace 17 with 11. You can manage multiple Java versions with sudo update-alternatives –config java. Many Indian IT companies and NASSCOM-affiliated training programs still require Java 11 compatibility for their backend stacks, so knowing how to switch between versions is a practical skill.

    How to Install Python on Linux

    Ubuntu 22.04 and later ship with Python 3 pre-installed. To install or upgrade:

    • sudo apt install python3 python3-pip python3-venv
    • Verify with: python3 –version

    The python3-venv package gives you virtual environment support built in. Never install Python packages system-wide with pip unless you know exactly what you are doing.

    How to Install pip in Linux

    pip is Python’s package installer. If it is not already present:

    • sudo apt install python3-pip
    • Verify with: pip3 –version

    To install a Python library, use pip3 install requests (or whichever package you need). Inside a virtual environment, you can use pip install without sudo.

    How to Set Up a Python Virtual Environment

    • python3 -m venv myenv – creates a new virtual environment called myenv.
    • source myenv/bin/activate – activates it.
    • deactivate – exits the environment.

    Virtual environments keep your project dependencies isolated. This is standard practice on any professional Python project, and it is a concept that comes up frequently in DevOps interviews.

    How to Install Docker on Linux

    Docker is not in the default Ubuntu repo in its latest form, so you install it from Docker’s official repository:

    1. sudo apt update
    2. sudo apt install ca-certificates curl gnupg
    3. Add Docker’s GPG key: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg –dearmor -o /etc/apt/keyrings/docker.gpg
    4. Add the repo: echo “deb [arch=$(dpkg –print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list
    5. sudo apt update
    6. sudo apt install docker-ce docker-ce-cli containerd.io
    7. Verify: sudo docker run hello-world

    According to Datadog’s 2024 Container Report, Docker remains the dominant container runtime with over 80% adoption among container users. If you are pursuing DevOps or cloud roles, Docker installation and configuration is a baseline expectation.

    How to Install Git, Node.js, MySQL and PostgreSQL

    • Git: sudo apt install git then verify with git –version.
    • Node.js and npm: sudo apt install nodejs npm. For the latest LTS version, use the NodeSource PPA: curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash – && sudo apt install nodejs.
    • MySQL: sudo apt install mysql-server then run sudo mysql_secure_installation to harden the setup.
    • PostgreSQL: sudo apt install postgresql postgresql-contrib. The service starts automatically.

    The JetBrains Developer Ecosystem Survey 2024 found that PostgreSQL overtook MySQL as the most widely used database among professional developers. In India, PostgreSQL adoption is growing rapidly in fintech and SaaS startups, while MySQL remains dominant in legacy enterprise and e-commerce stacks. Knowing how to install and manage both on Linux is a practical skill you will use constantly.

    How to Install .deb Files in Linux

    Some vendors, like Google Chrome, VS Code, and Slack, distribute their software as .deb packages rather than through apt repos. The linux software installation process for .deb files is straightforward:

    1. Download the .deb file from the vendor’s website.
    2. Run: sudo dpkg -i filename.deb
    3. If you get dependency errors, fix them with: sudo apt install -f

    The -f flag tells apt to fix broken dependencies. It fetches whatever the .deb package needs from the official repos. After that, the software is installed and behaves exactly like any apt-managed package.

    How to Install Firefox, VirtualBox and Tor Browser

    • Firefox: sudo apt install firefox (or via snap: sudo snap install firefox).
    • VirtualBox: Download the official .deb from virtualbox.org and use dpkg, or add Oracle’s apt repo for managed updates.
    • Tor Browser: Download the tarball from torproject.org, extract it, and run the start-tor-browser.desktop script. Tor Browser is not packaged in standard repos.

    Frequently Asked Questions

    How do you install software in Linux?

    On Debian-based Linux systems like Ubuntu, run sudo apt update followed by sudo apt install <package-name>. The package manager fetches the software from official repositories, handles all dependencies, and installs it automatically. For software not in the repos, install a .deb file with sudo dpkg -i filename.deb or add a third-party PPA first.

    What is apt in Linux?

    apt (Advanced Package Tool) is the command-line package manager for Debian-based Linux distributions including Ubuntu, Kali Linux, and Linux Mint. It fetches packages from configured repositories, verifies their integrity using GPG signatures, resolves dependency trees, and installs software in the correct order. It also handles updates and removals cleanly without leaving orphaned files behind.

    What is the difference between apt and apt-get?

    Both apt and apt-get install software on Linux from the same repositories. apt is the newer, user-friendly interface with a progress bar and cleaner output, recommended for interactive terminal use. apt-get is older and preferred in shell scripts because its output format is stable across versions. For everyday use when learning how to install software in Linux, apt is the better choice.

    How do you install Docker on Linux?

    Add Docker’s official GPG key and apt repository to your system, then run sudo apt install docker-ce docker-ce-cli containerd.io. Verify the install with sudo docker run hello-world. The official Docker documentation recommends this method over the snap version for production and development environments because it gives you the latest stable release with full control.

    How do you install pip in Linux?

    Run sudo apt install python3-pip on any Debian-based system. Verify it worked with pip3 –version. Inside a Python virtual environment, pip is available without sudo. Avoid running pip install as root at the system level; use virtual environments created with python3 -m venv to keep project dependencies isolated and avoid breaking system Python packages.

    How do you install .deb files in Linux?

    Download the .deb file from the software vendor’s website, then run sudo dpkg -i filename.deb in the terminal from the directory where the file is saved. If dpkg reports missing dependencies, immediately run sudo apt install -f to fetch and install them automatically. This works for packages like Google Chrome, VS Code, Slack, and many vendor-specific tools.

    Setting up a Linux workstation from scratch, whether on a cloud VM, a college lab machine, or your own laptop, is a skill that compounds over time. The commands you practice today become muscle memory within weeks. If you are aiming for a DevOps, cloud, or backend engineering role, knowing how to install software in Linux is genuinely day-one territory.

    The best next step is to spin up a free Ubuntu VM on your machine using VirtualBox, or use a free-tier instance on AWS or Google Cloud, and run through every install in this guide manually. Type the commands, read the output, and understand what each step does rather than copying blindly.

    Explore 3.0 University’s technology and cybersecurity programs at 3university.io and build the skills that India’s fastest-growing tech companies are actively hiring for.

    Last updated: May 2025. Reviewed by the 3University editorial team.

    • Share:
    3.0 University

    Previous post

    ISRO Free Online Courses with Certificate: Apply Online & Get Certified
    July 14, 2026

    Next post

    Linux System Administration Commands: Monitoring, Users, Cron & Services
    July 14, 2026

    You may also like

    Free AI Certificate Course by Government of India
    FREE AI Course with Certificate Launched by Govt of India
    June 19, 2026
    Highest Paid Professions in India
    Highest Paid Profession in India
    June 12, 2026
    Cyber Security Course Eligibility
    Cyber Security Course Eligibility
    June 11, 2026

    Leave A Reply Cancel reply

    You must be logged in to post a comment.

    3.0 University is a pioneering academic initiative for creating a comprehensive knowledge ecosystem for emerging technologies. We have developed an in-house suite of course offerings for retail, institutional market participants and industry-at-large. 

    Facebook X-twitter Instagram Linkedin
    Quick Links
    • About us
    • Courses
    • Become a Partner
    • Contact Us
    • Blog
    • Learn
    Trending Courses
    • Certified SOC Analyst
    • Certified Ethical Hacker v13 Program
    • Certified Penitration Testing Professional
    • Full Stack Blockchain Developer
    • Certified AI Program Manager
    Policies
    • Privacy Policy
    • Terms and Conditions
    • Disclaimer
    • Refund Policy
    Contact Us
    FT Tower, CTS No. 256 & 257,
    Suren Road, Chakala, Andheri (E), Mumbai-400093 India.

    +91 8657961141

    support@3university.io

    Login with your site account

    Lost your password?

    Not a member yet? Register now

    Register a new account

    Are you a member? Login now

    Login with your site account

    Lost your password?

    Not a member yet? Register now

    Register a new account

    Are you a member? Login now

    Sign In

    Welcome back! Or create an account

    OR
    Forgot password?

    Need a new verification email?

    Don't have an account? Register

    Create Account

    Already have an account? Sign in

    OR

    Already have an account? Log in

    Reset Password

    Enter your email and we'll send you a reset link.

    ← Back to login

    Check Your Email

    Almost there!
    We have sent a verification link to your email address. Please check your inbox (and spam folder) and click the link to activate your account.

    Didn't receive the email? Enter your address to resend:

    Already verified? Sign in