user9382: What command do I use to get the latest bitcoin package under Ubuntu desktop 12.04 LTS?
Also, what needs to be done to uninstall previous versions?

user10394: It's relatively painless 
sudo apt-add-repository add-repository
sudo apt-get update
sudo apt-get install bitcoin-qt

How you get rid of the old copy depends on how it was installed, if it was a default install this will probably get rid of that anyway. 

user10829: This could be found by searching on google and using couple of different queries, nevertheless. Here we go :
sudo apt-get upgrade
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install libtool
sudo apt-get install autotools-dev
sudo apt-get install autoconf
sudo apt-get install libssl-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libdb5.1-dev
sudo apt-get install libdb5.1++-dev
sudo apt-get install libminiupnpc-dev

download berkeley db 
wget http://download.oracle.com/berkeley-db/db-6.0.20.tar.gz

unpack 
tar -xzvf db-6.0.20.tar.gz

now build berkeley db 
../dist/configure --enable-cxx

once the process completed
make

and then 
make install

now download bitcoin repo from github
if you do not have git installed install it by 
apt-get install git

then run
git clone git://github.com/bitcoin/bitcoin

cd bitcoin
./autogen.sh

let it complete
./configure

let it complete 
make

now you should have bitcoind in the src folder copy that to usr/bin folder

9382: <p>What command do I use to get the latest bitcoin package under Ubuntu desktop 12.04 LTS?</p>

<p>Also, what needs to be done to uninstall previous versions?</p>
 10394: <p>It's relatively painless </p>

<pre><code>sudo apt-add-repository add-repository
sudo apt-get update
sudo apt-get install bitcoin-qt
</code></pre>

<p>How you get rid of the old copy depends on how it was installed, if it was a default install this will probably get rid of that anyway. </p>
 10829: <p>This could be found by searching on google and using couple of different queries, nevertheless. Here we go :</p>

<pre><code>sudo apt-get upgrade
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install libtool
sudo apt-get install autotools-dev
sudo apt-get install autoconf
sudo apt-get install libssl-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libdb5.1-dev
sudo apt-get install libdb5.1++-dev
sudo apt-get install libminiupnpc-dev
</code></pre>

<p>download berkeley db </p>

<pre><code>wget http://download.oracle.com/berkeley-db/db-6.0.20.tar.gz
</code></pre>

<p>unpack </p>

<pre><code>tar -xzvf db-6.0.20.tar.gz
</code></pre>

<p>now build berkeley db </p>

<pre><code>../dist/configure --enable-cxx
</code></pre>

<p>once the process completed</p>

<pre><code>make
</code></pre>

<p>and then </p>

<pre><code>make install
</code></pre>

<p>now download bitcoin repo from github</p>

<p>if you do not have git installed install it by </p>

<pre><code>apt-get install git
</code></pre>

<p>then run</p>

<pre><code>git clone git://github.com/bitcoin/bitcoin
</code></pre>

<p>cd bitcoin</p>

<pre><code>./autogen.sh
</code></pre>

<p>let it complete</p>

<pre><code>./configure
</code></pre>

<p>let it complete </p>

<pre><code>make
</code></pre>

<p>now you should have bitcoind in the src folder copy that to usr/bin folder</p>
