Difference between add-apt-repository & apt-add-repository ?
Asked
Active
Viewed 8,260 times
50
Jorge Castro
- 73,907
Newbi
- 2,219
2 Answers
47
They're the same command, someone just added the inverse because people kept mixing the command up and typing it wrong.
Jorge Castro
- 73,907
29
An easy way to find this out would have been:
minibun:~> ls -l `which apt-add-repository`
lrwxrwxrwx 1 root root 18 2011-08-26 15:36 /usr/bin/apt-add-repository -> add-apt-repository
You can see that apt-add-repository is simply a symlink to add-apt-repository :)
-
4This doesn't prove anything: e.g.
/usr/bin/xzcatis a symlink toxz, but works quite differently. – Ruslan Feb 20 '16 at 06:16 -
-
2@Shayan exactly, and my point was that the mere fact that a name is a symlink to something doesn't prove that the functionality between two names is identical. – Ruslan Mar 07 '18 at 11:30
-
@Ruslan Yep, I added it for reference so others can see why it's different :) – Shayan Mar 07 '18 at 11:47
apt-add-repositorycommand i always see itadd-apt-repository, it is good as i always use command in the form ofsudo apt-get updateandsudo apt-get upgradeandapt-add-repositoryhas the same form (Good) – Black Block Nov 28 '11 at 23:02aptcommand? I know there isapt edit-sourceswhich lets one edit the/etc/apt/sources.listfile with a text editor. But is there a quick way to add/remove sources with just theaptcommand? – mbigras Feb 22 '17 at 19:15