3 Ways to Add a Repository in Linux

Table of contents:

3 Ways to Add a Repository in Linux
3 Ways to Add a Repository in Linux
Anonim

Installing software and applications in Linux is a different procedure from the common one in the Windows environment. To do this you need to use the 'repositories'. It may be helpful to think of a 'package manager' as the equivalent of an advanced version of the 'Add or Remove Programs' tool in the Windows control panel. In this way, all the programs that will be installed on a Linux system can be checked in advance for viruses.

Steps

Method 1 of 3: Command Line

Add Repositories in Linux Step 1
Add Repositories in Linux Step 1

Step 1. In OpenSuse, use the 'zypper addrepo' command (without quotes)

In Mandriva, use the command 'urpmi.addmedia' (without quotes). In Debian or Ubuntu, open and edit the '/etc/apt/sources.list' file. In Fedora, edit the '/etc/yum.repos file.d / '.

Add Repositories in Linux Step 2
Add Repositories in Linux Step 2

Step 2. To save the changes, you will need to provide the 'root' password

In Debian, use the command 'su nano /etc/apt/sources.list'. In Ubuntu, use the command 'sudo nano /etc/apt/sources.list'. In Fedora, use the command 'su nano / etc / yum.repos.d '. In OpenSuse, use the' su zypper addrepo 'command. In Mandriva, use the' su urpmi.addmedia 'command.

Method 2 of 3: Adept GUI

Add Repositories in Linux Step 3
Add Repositories in Linux Step 3

Step 1. Enter the 'root' password

Add Repositories in Linux Step 4
Add Repositories in Linux Step 4

Step 2. Start 'Adept', then select 'Manage Repositories' from the 'Adaptec' menu and check the software sources through the 'Software Sources' window

Method 3 of 3: Synaptic GUI

Add Repositories in Linux Step 5
Add Repositories in Linux Step 5

Step 1. Enter the 'root' password

Add Repositories in Linux Step 6
Add Repositories in Linux Step 6

Step 2. Select the 'Settings' item, then choose the 'Package repositories' option

Advice

  • It is sometimes possible to purchase full repositories in CD format from websites such as 'On-Disk'.
  • cdrom: enables the CD-ROM drive to be used as a repository.
  • Also rate 'AptonCD'.

Recommended: