Add Repositories in Linux

Installing software in Linux is different from Windows in that it is done via repositories. It can help to think of package managers as the equivalent of an advanced version of Add/Remove Programs in Control Panel in Windows. This way programs can be virus checked before the user installs them.

Steps

Command-line

  1. In OpenSuse - zypper addrepo
    In Mandriva - urpmi.addmedia
    In Debian or Ubuntu - open and edit "/etc/apt/sources.list"
    In Fedora -"/etc/yum.repos.d/".
  2. Enter the root password to save it
    In Debian - su nano /etc/apt/sources.list
    In Ubuntu - sudo nano /etc/apt/sources.list
    In Fedora - su nano /etc/yum.repos.d
    In OpenSuse - su zypper addrepo
    In Mandriva - su urpmi.addmedia

Graphical (Adept)

  1. Enter the root password
  2. Click Adept then Manage Repositories/Edit Software Sources

Graphical (Synaptic)

  1. Enter the root password
  2. Click Settings then Repositories

Tips

  • Sometimes you can buy the full repositories on CD from the likes of on-disk.
  • CD-ROM: enables the CD-ROM as a repository
  • Also consider AptonCD

Related Articles