PDA

View Full Version : [ubuntu] Question about Pidgin repositories command



PrimaryMaster
June 15th, 2009, 10:46 PM
Hi everyone,

I run Hardy on my laptop and i want to update my Pidgin to the latest version. At Pidgin's website there is the following command:


sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com \ 67265eb522bdd6b1c69e66ed7fb8bee0a1f196a8

. /etc/lsb-release

echo deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu \ $DISTRIB_CODENAME main | \
sudo tee /etc/apt/sources.list.d/pidgin-ppa.list

The question is... Do i enter all this text as a single command or are these to be entered as separate commands? It seems to get the key fine but it doesn't update my resource list. Please help. Thank you.

UPDATE: I just received a Pidgin update. So i guess i did it at last. Still would like to know if this is a single command though. If someone can break it apart it'd help me understand. Thank you.

SOULRiDER
June 15th, 2009, 11:02 PM
I believe you should be able to just paste everything and not have any issues.

Cheesemill
June 15th, 2009, 11:58 PM
It's 3 commands, the \ just lets you split a command over several lines to make it easier to read. So it's the same as typing:


sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 67265eb522bdd6b1c69e66ed7fb8bee0a1f196a8
. /etc/lsb-release
echo deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu $DISTRIB_CODENAME main | sudo tee /etc/apt/sources.list.d/pidgin-ppa.list

You can split any command up in this way, for example you could do

sudo \
apt-get \
update
instead of

sudo apt-get update

The commands you entered only installed the Pidgin PPA and key to your repos, it didn't include the update or upgrade commands needed to actually update your system. This is why the Pidgin update didn't happen immediately.

Locke_99GS
June 16th, 2009, 01:07 AM
tee /etc/apt/sources.list.d/pidgin-ppa.list
Creates a sublist, which is why you're not seeing the entry in your sources.list.


$DISTRIB_CODENAME
Should equal Jaunty/Intrepid/Hardy/whatever.

PrimaryMaster
June 23rd, 2009, 04:30 PM
Thank you all. Been really helpful. :)