{"id":1248,"date":"2019-08-08T12:00:00","date_gmt":"2019-08-08T15:00:00","guid":{"rendered":"http:\/\/www.bfnetworks.com.br\/?p=1248"},"modified":"2023-01-15T19:20:36","modified_gmt":"2023-01-15T22:20:36","slug":"deletando-repositorio-ppa-ubuntu","status":"publish","type":"post","link":"https:\/\/bfnetworks.com.br\/deletando-repositorio-ppa-ubuntu\/","title":{"rendered":"DELETANDO REPOSIT\u00d3RIO PPA E GPG Key – Ubuntu"},"content":{"rendered":"\n

Muitos tutoriais mostram como adicionar um reposit\u00f3rio PPA para instala\u00e7\u00e3o de pacotes mas n\u00e3o mostram como deletar, \u00e9 poss\u00edvel que um dia nos deparamos com um reposit\u00f3rio n\u00e3o confiavel que tenhamos adicionado e queremos remover. <\/p>\n\n\n

Por tanto aqui mostro como remover e tamb\u00e9m a key GPG no Ubuntu.<\/p>\n\n\n

DELETE REPOSITORY<\/h3>\n\n\n

Primeiramente listamos os repositorios PPA:<\/p>\n\n\n

\n
apt policy<\/div> <\/div>\n\n\n
500 http:\/\/ppa.launchpad.net\/teejee2008\/ppa<\/strong>\/ubuntu eoan\/main i386 Packages
release v=19.10,o=LP-PPA-teejee2008,a=eoan,n=eoan,l=Development,c=main,b=i386
origin ppa.launchpad.net
500 http:\/\/ppa.launchpad.net\/teejee2008\/ppa\/ubuntu eoan\/main amd64 Packages
release v=19.10,o=LP-PPA-teejee2008,a=eoan,n=eoan,l=Development,c=main,b=amd64
origin ppa.launchpad.net<\/pre>\n\n\n

Acima temos o exemplo do reposit\u00f3rio chamado teejee2008\/ppa<\/strong>, depois de identificado reposit\u00f3rio executamos o comando abaixo para remover:<\/p>\n\n\n

\n
sudo add-apt-repository -r ppa:PPA_REPOSITORY_NAME\/PPA<\/div> <\/div>\n\n\n

DELETE REPOSITORY KEYS<\/h3>\n\n\n

Listando chaves dos reposit\u00f3rios:<\/p>\n\n\n

\n
sudo apt-key list<\/div> <\/div>\n\n\n
-----------------------------------------------------------------\n pub   rsa1024 2013-01-14 [SC]\n       1B32 B87A BAEE 3572 18F6  B48C B5B1 16B7 2D0F 61F0<\/strong>\n uid           [ desconhecida] Launchpad PPA for Tony George\n \/etc\/apt\/trusted.gpg.d\/ubuntu-keyring-2012-archive.gpg\n-----------------------------------------------------------------<\/pre>\n\n\n

Para remover, informe no comando abaixo os 2 campos sem espa\u00e7o<\/strong> que est\u00e3o em negrito acima:<\/p>\n\n\n

\n
sudo apt-key del 2D0F61F0<\/div> <\/div>\n\n\n

FINALIZANDO<\/h3>\n\n\n

Atualize com o comando abaixo a lista de reposit\u00f3rios:<\/p>\n\n\n

\n
sudo apt update<\/div> <\/div>\n\n\n

FONTE<\/h3>\n\n\n

https:\/\/www.ostechnix.com\/how-to-delete-a-repository-and-gpg-key-in-ubuntu\/
https:\/\/linuxconfig.org\/how-to-list-and-remove-ppa-repository-on-ubuntu-18-04-bionic-beaver-linux<\/p>\n","protected":false},"excerpt":{"rendered":"

Muitos tutoriais mostram como adicionar um reposit\u00f3rio PPA para instala\u00e7\u00e3o de pacotes mas n\u00e3o mostram como deletar, \u00e9 poss\u00edvel que um dia nos deparamos com um reposit\u00f3rio n\u00e3o confiavel que tenhamos adicionado e queremos remover. Por tanto aqui mostro como remover e tamb\u00e9m a key GPG no Ubuntu.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/posts\/1248"}],"collection":[{"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/comments?post=1248"}],"version-history":[{"count":1,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/posts\/1248\/revisions"}],"predecessor-version":[{"id":1853,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/posts\/1248\/revisions\/1853"}],"wp:attachment":[{"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/media?parent=1248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/categories?post=1248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/tags?post=1248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}