Difference between add-apt-repository
& apt-add-repository
?
They're the same command, someone just added the inverse because people kept mixing the command up and typing it wrong.
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
:)
-
3This doesn't prove anything: e.g.
/usr/bin/xzcat
is a symlink toxz
, but works quite differently. – Ruslan Feb 20 '16 at 6: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 7 '18 at 11:30
-
@Ruslan Yep, I added it for reference so others can see why it's different :) – Shayan Mar 7 '18 at 11:47
apt-add-repository
command i always see itadd-apt-repository
, it is good as i always use command in the form ofsudo apt-get update
andsudo apt-get upgrade
andapt-add-repository
has the same form (Good) – Black Block Nov 28 '11 at 23:02apt
command? I know there isapt edit-sources
which lets one edit the/etc/apt/sources.list
file with a text editor. But is there a quick way to add/remove sources with just theapt
command? – mbigras Feb 22 '17 at 19:15