How to temporarily disable and permanently disable repos in Debian based systems?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I know how to do it on Red Hat based systems.
yum âÂÂdisablerepo=* --enablerepo=epel update
The above command will temporarily disable all repos and enable epel and update only epel packages.
yum updateâÂÂdisablerepo=remi-safe,updates
This will also disable two repos while updating all other enable repos.
What is the equivalent of the above on ubuntu for instance ?
I know we can comment out the repo in the /etc/apt/sources.list.d
But this will permanently disable the repo right?
Is there a way that I can run apt-get update
while temporarily disable one repo for instance?
package-management rpm repository packaging deb
add a comment |Â
up vote
1
down vote
favorite
I know how to do it on Red Hat based systems.
yum âÂÂdisablerepo=* --enablerepo=epel update
The above command will temporarily disable all repos and enable epel and update only epel packages.
yum updateâÂÂdisablerepo=remi-safe,updates
This will also disable two repos while updating all other enable repos.
What is the equivalent of the above on ubuntu for instance ?
I know we can comment out the repo in the /etc/apt/sources.list.d
But this will permanently disable the repo right?
Is there a way that I can run apt-get update
while temporarily disable one repo for instance?
package-management rpm repository packaging deb
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I know how to do it on Red Hat based systems.
yum âÂÂdisablerepo=* --enablerepo=epel update
The above command will temporarily disable all repos and enable epel and update only epel packages.
yum updateâÂÂdisablerepo=remi-safe,updates
This will also disable two repos while updating all other enable repos.
What is the equivalent of the above on ubuntu for instance ?
I know we can comment out the repo in the /etc/apt/sources.list.d
But this will permanently disable the repo right?
Is there a way that I can run apt-get update
while temporarily disable one repo for instance?
package-management rpm repository packaging deb
I know how to do it on Red Hat based systems.
yum âÂÂdisablerepo=* --enablerepo=epel update
The above command will temporarily disable all repos and enable epel and update only epel packages.
yum updateâÂÂdisablerepo=remi-safe,updates
This will also disable two repos while updating all other enable repos.
What is the equivalent of the above on ubuntu for instance ?
I know we can comment out the repo in the /etc/apt/sources.list.d
But this will permanently disable the repo right?
Is there a way that I can run apt-get update
while temporarily disable one repo for instance?
package-management rpm repository packaging deb
asked Apr 28 at 19:31
alkabary
574823
574823
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
The easiest way I've found to manage repos is to have them in individual files in /etc/apt/sources.list.d/
. That way, disabling the repo is as easy as moving the file from /etc/apt/sources.list.d/repo.list
to /etc/apt/sources.list.d/repo.list.bak
, and re-enabling the repo is as easy as going the other way. You could even create a script which temporarily disables a repo by moving the file, running update/install/whatever, and then moving the file back again.
1
⦠or, if one is used to.bak
files being discardable byproducts of various tools,.disabled
. (-:
â JdeBP
Apr 30 at 7:10
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
The easiest way I've found to manage repos is to have them in individual files in /etc/apt/sources.list.d/
. That way, disabling the repo is as easy as moving the file from /etc/apt/sources.list.d/repo.list
to /etc/apt/sources.list.d/repo.list.bak
, and re-enabling the repo is as easy as going the other way. You could even create a script which temporarily disables a repo by moving the file, running update/install/whatever, and then moving the file back again.
1
⦠or, if one is used to.bak
files being discardable byproducts of various tools,.disabled
. (-:
â JdeBP
Apr 30 at 7:10
add a comment |Â
up vote
1
down vote
The easiest way I've found to manage repos is to have them in individual files in /etc/apt/sources.list.d/
. That way, disabling the repo is as easy as moving the file from /etc/apt/sources.list.d/repo.list
to /etc/apt/sources.list.d/repo.list.bak
, and re-enabling the repo is as easy as going the other way. You could even create a script which temporarily disables a repo by moving the file, running update/install/whatever, and then moving the file back again.
1
⦠or, if one is used to.bak
files being discardable byproducts of various tools,.disabled
. (-:
â JdeBP
Apr 30 at 7:10
add a comment |Â
up vote
1
down vote
up vote
1
down vote
The easiest way I've found to manage repos is to have them in individual files in /etc/apt/sources.list.d/
. That way, disabling the repo is as easy as moving the file from /etc/apt/sources.list.d/repo.list
to /etc/apt/sources.list.d/repo.list.bak
, and re-enabling the repo is as easy as going the other way. You could even create a script which temporarily disables a repo by moving the file, running update/install/whatever, and then moving the file back again.
The easiest way I've found to manage repos is to have them in individual files in /etc/apt/sources.list.d/
. That way, disabling the repo is as easy as moving the file from /etc/apt/sources.list.d/repo.list
to /etc/apt/sources.list.d/repo.list.bak
, and re-enabling the repo is as easy as going the other way. You could even create a script which temporarily disables a repo by moving the file, running update/install/whatever, and then moving the file back again.
answered Apr 28 at 20:30
Chiraag
1968
1968
1
⦠or, if one is used to.bak
files being discardable byproducts of various tools,.disabled
. (-:
â JdeBP
Apr 30 at 7:10
add a comment |Â
1
⦠or, if one is used to.bak
files being discardable byproducts of various tools,.disabled
. (-:
â JdeBP
Apr 30 at 7:10
1
1
⦠or, if one is used to
.bak
files being discardable byproducts of various tools, .disabled
. (-:â JdeBP
Apr 30 at 7:10
⦠or, if one is used to
.bak
files being discardable byproducts of various tools, .disabled
. (-:â JdeBP
Apr 30 at 7:10
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
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%2funix.stackexchange.com%2fquestions%2f440637%2fhow-to-temporarily-disable-and-permanently-disable-repos-in-debian-based-systems%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
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');
);
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');
);
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