Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Linux Commands»How to Install .deb ile in Ubuntu & Debian

    How to Install .deb ile in Ubuntu & Debian

    By RahulJune 7, 20222 Mins Read

    The file with the .deb extension is the package for the Debian-based systems. You can install Debian packages directly with apt repositories (PPA). It also allows installing locally downloaded deb packages via the command line.

    Advertisement

    The Ubuntu and other Debian based systems provides dpkg (Debian Package Management System) for directly installing .deb files. Another apt command is a powerful command-line tool, which works with Ubuntu’s Advanced Packaging Tool, and helps in managing Debian packages.

    This tutorial will help you to install deb files on Ubuntu and other Debian-based systems.

    How to Install .deb file with dpkg

    dpkg is a command-line tool to install, build, remove and manage Debian packages. Before installation, download or copy the deb file in the local drive. Then use dpkg command to install locally downloaded deb file.

    For example, I have downloaded the Google Chrome Debian file in the local system. Then issue the following command to install google-chrome-stable_current_amd64.deb file.

    sudo dpkg -i google-chrome-stable_current_amd64.deb 
    

    The above command will install the defined package on the command line. In case the installation failed with dependencies, issue the next command to complete the installation process.

    sudo apt install -f 
    

    This tells the Apt package manager to complete the unfinished installations. Apt package management is capable to resolve dependencies and download from network repositories.

    How to Install .deb file using Apt-get

    The latest operating systems uses apt instead of apt-get for the packages installation. So issue the following apt command to install a locally downloaded debian package.

    sudo apt install -f google-chrome-stable_current_amd64.deb 
    

    The above command will also download and install the required dependencies.

    If you are using an older version of Ubuntu and Debian, use apt-get to install deb file.

    sudo apt-get install -f google-chrome-stable_current_amd64.deb 
    

    Conclusion

    In this tutorial, you have learned how to install deb files in Ubuntu, Debian, and LinuxMint systems.

    apt deb dpkg
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    cp Command in Linux (Copy Files Like a Pro)

    dd Command in Linux (Syntax, Options and Use Cases)

    Apt Remove vs Apt Autoremove vs Apt Purge: Key Differences

    Add A Comment

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Implementing a Linux Server Security Audit: Best Practices and Tools
    • cp Command in Linux (Copy Files Like a Pro)
    • 15 Practical Examples of dd Command in Linux
    • dd Command in Linux (Syntax, Options and Use Cases)
    • Iptables: Common Firewall Rules and Commands
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.