apt-get Notes for an Ubuntu user…

I’m adjusting to life as an Ubuntu user. How I got to being an Ubuntu user again is an ugly story of a failed Windows 7 install, more on that another time. One of the things I struggle with when using Ubuntu, is should I use the cmd-line and apt-get to update/upgrade/install software on my systems or should I use the gui tool. I’ve settled on apt-get from the cmd-line and now am trying to gather some information on what does what.

I’ll be using this post as a dumping spot for all my apt-get notes/gotchas/howtos.  You’ll see my notes on apt-get update and install.  What isn’t really clear, is how I search through the repos and understand the version and compatibility info on a package, or how I even do that.  I’ll go back and re-read the debian url I list below looking for that info and add it in the comments when I find it.

apt commands:

$ sudo apt-get update

apt-get update will “check” all the repos I have setup in my sources.list to see if there is anything new. Most importantly running update is a must to move apt-get to reading a new, updated sources.list. Run update before upgrade.

$ sudo apt-get install app-name

apt-get install app-name will install the latest version of app-name. If what is on my box is “current” nothing will be installed.

$ clean

$ remove

apt-get tutorial at debian site: http://www.debian.org/doc/manuals/debian-tutorial/ch-dpkg.html

One thought on “apt-get Notes for an Ubuntu user…”

  1. I just installed Ubuntu v9.04 Server edition for the first time this weekend on a box at home. This is what I have done so far without problems.

    sudo apt-get install openssh-server sudo apt-get install vsftpd sudo vi /etc/vsftpd.conf Add anonymous_enable=NO local_enable=YES write_enable=YES sudo apt-get install mysql-server mysql-client

Leave a Reply

Your email address will not be published. Required fields are marked *