Command Line Package Management [Debian Based]

you can use ‘apt-get’ tool to manage packages via the CLI instead of using the GUI. ‘apt-get’ can be used to install and uninstall packages as we needed. For your convenience Im going to introduce another CLI tool , ‘dpkg’. Most of you may already have useded it.

Installing a program:

apt-get install

apt-get install

system will check the repositories and install it into the pc from a desired place. By default it will connect your PC to a FTP server and download the required package and its dependencies, then install. This method is highly effective for a good installation.

If you want to install a package which is already saved in your pc,

dpkg -i

dpkg -i

At times you have to download the package source code/binaries and compile it then install. To do that go in to that folder and follow the following steps,

#./configure
#make
#make install

Uninstalling a program:

same tools again!

dpkg --list

dpkg --list

using the above code you can get a list of installed programs.You can use ‘apt-get’ as shown bellow to remove programs,

apt-get remove

apt-get remove

when after performing an ‘apt-get install’, by experience you ll understand that its installing  also other packages as dependencies. We can also remove a program with all its dependencies.

apt-get --purge

apt-get --purge

these are the basics of Linux file management via CLI. Feel free to experiment the commands and rediscover the CLI.
……………..enjoy…………….

About these ads

3 Responses to “Command Line Package Management [Debian Based]”

  1. barrierefreies webdesign Says:

    I studied the html tutorial and I really learned a lot. I think my next homepage will be a lot better than my first one.

  2. katty Says:

    Gratitude used for the fantastic in sequence limited now in your blog, this is a trivial quiz used for your blog viewers. Who alleged the subsequent quotation? . . . .A affirmative opinion may not solve every one your problems, excluding it will irritate an adequate amount of ancestors to make it worth the effort.

  3. sos datenrettung Says:

    I am curious to find out what blog system you’re utilizing? I’m experiencing some small security issues with my latest blog and I’d like to find something more safe. Do you have any solutions?
    sos datenrettung http://www.sos-datenrettung.com/


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: