Re: Pacotes Órfãos

Lucas Castro <[email protected]>
Newsgroups gmane.linux.debian.devel.portuguese
Message-ID <[email protected]>
dpkg --list | grep ii | awk '{ print $2}' | cut -d ':' -f1 | xargs  -I
{} ./orfa.py {}
/var/lib/apt/lists/ftp.br.debian.org_debian_dists_testing_main_source_Sources

acho que esse script em python com esse awk deve ajudar.
Porém como percebe ele não consulta o wnpp online,
apenas verifica os pacotes instalados e cruza com o arquivo que é passado,
 procurando por QA Group no campo de Maintainer.

On 17-03-2016 18:29, Giovani Ferreira wrote:
> Olá Kretcheu,
>
> On 17-03-2016 14:34, Paulo wrote:
>> estou interessado em fazer uma pesquisa, descobrir quais pacotes que tenho instalado e que estão órfãos no Debian.
>> Acho que dessa forma conseguiria encontrar pacotes órfãos para colaborar.
>>
>> Alguém sabe qual comando rodar para saber?
>>
> Apesar de não ser para pacotes órfãos, um comando que também pode ajudar é 
> o rc-alert, ele mostra os bugs RC dos pacotes que estão instalados no seu 
> sistema.
>
> []'s
>
orfa.py (text/x-python, 597 B)
#!/usr/bin/env python

import sys 
argv = sys.argv[1:]


package = argv[0]
file_path = argv[1]

lines = open(file_path).readlines()

#print package, file_path
installed = True 
print 'check for package %s' % package    

for line in lines:
    line = line.strip()

    if not line: 
        installed = False 

    if ('Package: %s' % package) in line:
        pkg = line
        installed = True

    if '<[email protected]>' in line:
        if installed: 
            print '---'
            print pkg
            print line
            print '---'
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.