Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Commands to install packages on Linux

    • 0
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 170
    Comment on it

    Linux has different flavours available in the market but can be classified into 2 major categories ie. Distros based on Debian: eg. Ubuntu etc. Distros based on RedHat: eg. Centos etc.

    This have different package managers to install pre-compiled packages and libraries from the repositories.

    Package manager used by Ubuntu and other distros is aptitude.

    Package manager used by Centos and other distros is yum.

    You can use these commands to install required packages from the repositories.

    The examples below is to install apache server on the Linux using these package managers.

    Ubuntu:

    apt-get install apache2
    

    Centos

    yum install httpd
    

    Please note that the packages may have different names based on the distros.

    To remove a package that is installed you can use the commands

    Ubuntu:

    apt-get remove apache2
    

    Centos

    yum remove httpd
    

    Hope this helps.

    Naren

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: