Difference between revisions of "Sources"

Line 1: Line 1:
 
This section explain how to adjust the repositories list.
 
This section explain how to adjust the repositories list.
  
===Ubuntu desktop===
+
 
 +
 
 +
=Ubuntu=
 
Edit the sources.list
 
Edit the sources.list
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
Line 7: Line 9:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
====Disable source repositories====
+
 
 +
 
 +
==Disable source repositories==
 
You don't need to use the sources for a daily use. Just remove or comment all '''deb-src''' lines using a #
 
You don't need to use the sources for a daily use. Just remove or comment all '''deb-src''' lines using a #
 +
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
#deb-src http://se.archive.ubuntu.com/ubuntu/ saucy-updates main restricted
 
#deb-src http://se.archive.ubuntu.com/ubuntu/ saucy-updates main restricted
 
</syntaxhighlight>
 
</syntaxhighlight>
  
====Required repositories====
+
 
 +
 
 +
==Required repositories==
 +
 
 
You need to enable:
 
You need to enable:
 
* Ubuntu official repositories  
 
* Ubuntu official repositories  
Line 19: Line 27:
 
* Ubuntu partners - commercial packages
 
* Ubuntu partners - commercial packages
 
* 3rd parties - from non-related providers  
 
* 3rd parties - from non-related providers  
 +
  
 
Your file should look like that:
 
Your file should look like that:
 +
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
##
 
##
Line 47: Line 57:
 
!! Don't forget to replace 'trusty' by the distribution name !!
 
!! Don't forget to replace 'trusty' by the distribution name !!
  
====Take changes into account====
+
 
 +
 
 +
==Take changes into account==
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
Line 53: Line 65:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
===Debian===
+
 
 +
 
 +
=Debian=
 +
 
 
The principle is the same as Ubuntu (logical as Ubuntu comes from Debian!).  
 
The principle is the same as Ubuntu (logical as Ubuntu comes from Debian!).  
 +
 +
 
Just put the following content into sources.list:
 
Just put the following content into sources.list:
  
To be adjusted
+
'''To be adjusted'''

Revision as of 14:59, 21 May 2014

This section explain how to adjust the repositories list.


Ubuntu

Edit the sources.list

sudo vim /etc/apt/sources.list


Disable source repositories

You don't need to use the sources for a daily use. Just remove or comment all deb-src lines using a #

#deb-src http://se.archive.ubuntu.com/ubuntu/ saucy-updates main restricted


Required repositories

You need to enable:

  • Ubuntu official repositories
  • Backport - community repositories
  • Ubuntu partners - commercial packages
  • 3rd parties - from non-related providers


Your file should look like that:

##
## Ubuntu repositories
## Distros: 
##    ubuntu 13.10     => saucy  
##    ubuntu 14.04 LTS => trusty
##
##

## Ubuntu official repos
deb http://se.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
deb http://se.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse

## Backports. Community repos approved by Canonical
deb http://se.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

## Canonical (Ubuntu) partners
deb http://archive.canonical.com/ubuntu trusty partner

## 3rd parties libraries
deb http://extras.ubuntu.com/ubuntu trusty main

!! Don't forget to replace 'trusty' by the distribution name !!


Take changes into account

sudo apt-get update && sudo apt-get upgrade


Debian

The principle is the same as Ubuntu (logical as Ubuntu comes from Debian!).


Just put the following content into sources.list:

To be adjusted