Разница между & ldquo; ppa-purge & rdquo; и & ldquo; add-apt-repository -r & rdquo ;?

Вероятно, вам нужно установить notify-osd (исправить уведомления) и indicator-applet и indicator-applet-session, чтобы исправить вашу вторую проблему.

1
задан 19 June 2013 в 07:59

1 ответ

Командная строка apt-add-repository говорит об этой команде:

   REPOSITORY can  be  either  a  line  that  can  be  added  directly  to
   sources.list(5),  in the form ppa:<user>/<ppa-name> for adding Personal
   Package Archives, or a distribution component to enable.

   In  the   first   form,   REPOSITORY   will   just   be   appended   to
   /etc/apt/sources.list.

   In  the second form, ppa:<user>/<ppa-name> will be expanded to the full
   deb  line  of  the  PPA  and   added   into   a   new   file   in   the
   /etc/apt/sources.list.d/  directory.   The  GPG public key of the newly
   added PPA will also be downloaded and added to apt's keyring.

   In the third form, the given distribution component will be enabled for
   all sources.  

и:

-r, --remove Remove the specified repository  

Таким образом, add-apt-repository просто добавляет и удаляет строки из /etc/apt/sources.list и /etc/apt/sources.list.d/.

В man-странице ppa-purge сказано следующее:

NAME
       ppa-purge - disables a PPA and reverts to official packages

DESCRIPTION
       This script provides a  bash  shell  script  capable  of  automatically
       downgrading all packages in a given PPA back to the ubuntu versions.

       You  have  to  run  it  using  root  privileges  because of the package
       manager.  

Таким образом, ppa-purge не только удалит PPA, но и снизит пакеты до версий по умолчанию. Это полезно при тестировании бета-версий или более поздних версий программного обеспечения.

12
ответ дан 24 May 2018 в 20:54
  • 1
    Удаляет ли ключ ppa из keyring от apt? – Alinwndrld 19 June 2013 в 08:04
  • 2
    @Alinwndrld Это должно быть. – Seth♦ 19 June 2013 в 08:17
  • 3
    @Alinwndrld см. здесь . Что касается ppa-purge, в настоящее время нет. Существуют ли там вредные ключи? – jarno 28 November 2016 в 13:17

Другие вопросы по тегам:

Похожие вопросы: