apt-get autoremove não aceita expressões regulares?

0

A execução de apt-get install libboost.*1.40.0 (Ubuntu 10.04.4) funciona perfeitamente.

Mas apt-get autoremove libboost.*1.40.0 ... nem tanto. Qualquer solução alternativa?

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting libboost-system1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-python1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-signals1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-program-options1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-date-time1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-test1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-iostreams1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-wave1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-graph1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-thread1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-serialization1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-math1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-regex1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-filesystem1.40.0 for regex 'libboost.*1.40.0'
E: Couldn't find package libboost.*1.40.0

Editar: Na verdade, isso não tem nada a ver com autoremove , mesmo remove fará o mesmo

~# apt-get remove libboost-[a-z]*1.40.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note , selecting libboost-system1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-python1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-signals1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-test1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-iostreams1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-wave1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-graph1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-thread1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-serialization1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-math1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-regex1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-filesystem1.40.0 for regex 'libboost-[a-z]*1.40.0'
E: Couldn't find package libboost-[a-z]*1.40.0
    
por Jeff 22.05.2013 / 16:04

1 resposta

0

Como solução alternativa, você pode executar dpkg -l|grep 'libboost.*1.40.0'|cut -d' ' -f3|xargs sudo apt-get remove --purge para removê-los do seu sistema.

    
por dobey 22.05.2013 / 17:45