Disable automatic execution of apt update after running add-apt-repository on Ubuntu 18.X

Clash Royale CLAN TAG#URR8PPP up vote
1
down vote
favorite
Okay so it's a feature that has been added to Ubuntu 18.04 which automatically calls apt update after adding any PPA, sometimes it's a time saver as I don't have to run sudo apt update manually after adding a PPA. But sometimes it just pisses me off when I've to add multiple PPA's, and I've to wait for all the list updates after adding every single PPA.
Don't recommend "Can't you add multiple PPA by && ?", cause it's just pain.
apt package-management updates ppa
add a comment |Â
up vote
1
down vote
favorite
Okay so it's a feature that has been added to Ubuntu 18.04 which automatically calls apt update after adding any PPA, sometimes it's a time saver as I don't have to run sudo apt update manually after adding a PPA. But sometimes it just pisses me off when I've to add multiple PPA's, and I've to wait for all the list updates after adding every single PPA.
Don't recommend "Can't you add multiple PPA by && ?", cause it's just pain.
apt package-management updates ppa
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Okay so it's a feature that has been added to Ubuntu 18.04 which automatically calls apt update after adding any PPA, sometimes it's a time saver as I don't have to run sudo apt update manually after adding a PPA. But sometimes it just pisses me off when I've to add multiple PPA's, and I've to wait for all the list updates after adding every single PPA.
Don't recommend "Can't you add multiple PPA by && ?", cause it's just pain.
apt package-management updates ppa
Okay so it's a feature that has been added to Ubuntu 18.04 which automatically calls apt update after adding any PPA, sometimes it's a time saver as I don't have to run sudo apt update manually after adding a PPA. But sometimes it just pisses me off when I've to add multiple PPA's, and I've to wait for all the list updates after adding every single PPA.
Don't recommend "Can't you add multiple PPA by && ?", cause it's just pain.
apt package-management updates ppa
asked Jun 7 at 6:36
Vishesh Gautam
36011
36011
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
Checking the help:
$ add-apt-repository --help
Usage: add-apt-repository <sourceline>
...
Options:
-h, --help show this help message and exit
-m, --massive-debug Print a lot of debug information to the command line
-r, --remove remove repository from sources.list.d directory
-s, --enable-source Allow downloading of the source packages from the
repository
-y, --yes Assume yes to all queries
-n, --no-update Do not update package cache after adding
-u, --update Update package cache after adding (legacy option)
-k KEYSERVER, --keyserver=KEYSERVER
Legacy option, unused.
So:
sudo add-apt-repository -n ppa:...
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
Checking the help:
$ add-apt-repository --help
Usage: add-apt-repository <sourceline>
...
Options:
-h, --help show this help message and exit
-m, --massive-debug Print a lot of debug information to the command line
-r, --remove remove repository from sources.list.d directory
-s, --enable-source Allow downloading of the source packages from the
repository
-y, --yes Assume yes to all queries
-n, --no-update Do not update package cache after adding
-u, --update Update package cache after adding (legacy option)
-k KEYSERVER, --keyserver=KEYSERVER
Legacy option, unused.
So:
sudo add-apt-repository -n ppa:...
add a comment |Â
up vote
2
down vote
accepted
Checking the help:
$ add-apt-repository --help
Usage: add-apt-repository <sourceline>
...
Options:
-h, --help show this help message and exit
-m, --massive-debug Print a lot of debug information to the command line
-r, --remove remove repository from sources.list.d directory
-s, --enable-source Allow downloading of the source packages from the
repository
-y, --yes Assume yes to all queries
-n, --no-update Do not update package cache after adding
-u, --update Update package cache after adding (legacy option)
-k KEYSERVER, --keyserver=KEYSERVER
Legacy option, unused.
So:
sudo add-apt-repository -n ppa:...
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Checking the help:
$ add-apt-repository --help
Usage: add-apt-repository <sourceline>
...
Options:
-h, --help show this help message and exit
-m, --massive-debug Print a lot of debug information to the command line
-r, --remove remove repository from sources.list.d directory
-s, --enable-source Allow downloading of the source packages from the
repository
-y, --yes Assume yes to all queries
-n, --no-update Do not update package cache after adding
-u, --update Update package cache after adding (legacy option)
-k KEYSERVER, --keyserver=KEYSERVER
Legacy option, unused.
So:
sudo add-apt-repository -n ppa:...
Checking the help:
$ add-apt-repository --help
Usage: add-apt-repository <sourceline>
...
Options:
-h, --help show this help message and exit
-m, --massive-debug Print a lot of debug information to the command line
-r, --remove remove repository from sources.list.d directory
-s, --enable-source Allow downloading of the source packages from the
repository
-y, --yes Assume yes to all queries
-n, --no-update Do not update package cache after adding
-u, --update Update package cache after adding (legacy option)
-k KEYSERVER, --keyserver=KEYSERVER
Legacy option, unused.
So:
sudo add-apt-repository -n ppa:...
answered Jun 7 at 6:42
muru
128k19269459
128k19269459
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1044372%2fdisable-automatic-execution-of-apt-update-after-running-add-apt-repository-on-ub%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password