2

Is there an easy way to use a repository/PPA only when needed as we'd do in a RHEL based distro with yum's --enablerepo, --disablerepo flags .

For example

yum --enablerepo=epel install vlc
yum --disablerepo=* --enablerepo=centdvd list available
Gayan Weerakutti
  • 3,770
  • 26
  • 38
  • http://askubuntu.com/questions/111645/whats-the-best-way-to-re-enable-ppas-repos-after-an-upgrade – Raja G Feb 23 '16 at 08:16
  • also: http://askubuntu.com/questions/143203/how-to-disable-a-particular-ppa – Rinzwind Feb 23 '16 at 08:17
  • 1
    Quite a relevant question still. There are many use cases, including 1) Install a package but not have it automatically updated due to version dependencies, 2) install a package from a repo with conflicting packages which you don't want on the next upgrade, etc. – sastorsl Sep 25 '20 at 11:33

0 Answers0