[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [OLD IDEA] Automatic removal of dependencies (Use aptitude!)



On Sat, 2006-04-22 at 06:30 -0700, Panu Matilainen wrote:
> Checking the dependencies is the easy part. What gets less trivial is 
> things like this:
> 
> [pmatilai cs181072240 ~]$ rpm -e --test grub
> [pmatilai cs181072240 ~]$
> 
> Oops, nothing needs grub, so it can be removed safely, right?
> 
>  	- Panu -

$ cat /etc/fedora-release
Fedora Core release 5 (Bordeaux)

$ rpm -q apt --queryformat '%{NAME}-%{VERSION}.%{ARCH}\n'
apt-0.5.15lorg3.x86_64

$ head /etc/apt/rpmpriorities
Essential:
  grub
  termcap
  ed
  kbd
  iproute
  libtermcap
  libgcc
  setserial
  file

$ sudo apt-get remove grub
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
   grub (0.97-5)
WARNING: The following essential packages will be removed
This should NOT be done unless you know exactly what you are doing!
  grub
0 upgraded, 0 newly installed, 1 removed and 6 not upgraded.
Need to get 0B of archives.
After unpacking 1767kB disk space will be freed.
You are about to do something potentially harmful
To continue type in the phrase 'Yes, do as I say!'
 ?] No thanks.
Abort.

BTW, kickass work on apt, Panu. You have first dibs on my firstborn
child. If anyone wants to play with aptitude on Fedora, which already
supports the exact feature this thread is about, I've made up a package:

http://www.haxxed.com/rpms/aptitude-0.3.3-1.src.rpm
http://www.haxxed.com/rpms/FC5/aptitude-0.3.3-1.x86_64.rpm
http://www.haxxed.com/rpms/FC5/aptitude-0.3.3-1.i386.rpm

On FC5 you will need/want apt from the extras-development repo, which
supports multilib and yum style metadata.

And a bonus screenshot:

http://www.haxxed.com/rpms/Screenshot-aptitude.png

Attachment: signature.asc
Description: This is a digitally signed message part


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]