Discussion:
Can you force yum to ignore dependencies?
(too old to reply)
General Schvantzkoph
2006-05-03 23:24:41 UTC
Permalink
How do you force yum to ignore dependencies? I'm trying to do an update
and it fails because of a dependency in the freenx package. I don't use
freenx so I don't care if I break it. I also can't remove freenx
because there is something wrong with a script,

Running Transaction
error: %preun(freenx-0.4.4-6.rhfc4.at.noarch) scriptlet failed, exit status 1

Removed: freenx.noarch 0:0.4.4-6.rhfc4.at
Complete!
Lenard
2006-05-04 13:03:20 UTC
Permalink
Post by General Schvantzkoph
How do you force yum to ignore dependencies? I'm trying to do an update
and it fails because of a dependency in the freenx package. I don't use
freenx so I don't care if I break it. I also can't remove freenx
because there is something wrong with a script,
Running Transaction
error: %preun(freenx-0.4.4-6.rhfc4.at.noarch) scriptlet failed, exit status 1
Removed: freenx.noarch 0:0.4.4-6.rhfc4.at
Complete!
Err... not that I'm aware of, but rpm can(use with extreme care);

# rpm -Uvh <the package> --nodeps
--
"A personal computer is called a personal computer because it's yours,
Anything that runs on that computer, you should have control over."
Andrew Moss, Microsoft's senior director of technical policy, 2005
decrepit
2006-05-05 10:24:02 UTC
Permalink
Isn't it possible to exclude a package from the update? I thought yum
could do that. Wouldn't that achieve what you want.
Post by Lenard
Post by General Schvantzkoph
How do you force yum to ignore dependencies? I'm trying to do an update
and it fails because of a dependency in the freenx package. I don't use
freenx so I don't care if I break it. I also can't remove freenx
because there is something wrong with a script,
Running Transaction
error: %preun(freenx-0.4.4-6.rhfc4.at.noarch) scriptlet failed, exit status 1
Removed: freenx.noarch 0:0.4.4-6.rhfc4.at
Complete!
Err... not that I'm aware of, but rpm can(use with extreme care);
# rpm -Uvh <the package> --nodeps
General Schvantzkoph
2006-05-06 01:06:48 UTC
Permalink
Post by decrepit
Isn't it possible to exclude a package from the update? I thought yum
could do that. Wouldn't that achieve what you want.
Post by Lenard
Post by General Schvantzkoph
How do you force yum to ignore dependencies? I'm trying to do an update
and it fails because of a dependency in the freenx package. I don't use
freenx so I don't care if I break it. I also can't remove freenx because
there is something wrong with a script,
Running Transaction
error: %preun(freenx-0.4.4-6.rhfc4.at.noarch) scriptlet failed, exit status 1
Removed: freenx.noarch 0:0.4.4-6.rhfc4.at Complete!
Err... not that I'm aware of, but rpm can(use with extreme care);
# rpm -Uvh <the package> --nodeps
Not if you want to update the package that has a dependency problem. I
can't update Xorg because freenx has a dependency on the current Xorg
package, and I can't remove freenx because it's uninstaller is broken.
Lenard
2006-05-06 10:36:57 UTC
Permalink
Post by General Schvantzkoph
Post by decrepit
Isn't it possible to exclude a package from the update? I thought yum
could do that. Wouldn't that achieve what you want.
Post by Lenard
Post by General Schvantzkoph
How do you force yum to ignore dependencies? I'm trying to do an update
and it fails because of a dependency in the freenx package. I don't use
freenx so I don't care if I break it. I also can't remove freenx because
there is something wrong with a script,
Running Transaction
error: %preun(freenx-0.4.4-6.rhfc4.at.noarch) scriptlet failed, exit status 1
Removed: freenx.noarch 0:0.4.4-6.rhfc4.at Complete!
Err... not that I'm aware of, but rpm can(use with extreme care);
# rpm -Uvh <the package> --nodeps
Not if you want to update the package that has a dependency problem. I
can't update Xorg because freenx has a dependency on the current Xorg
package, and I can't remove freenx because it's uninstaller is broken.
Possible Solution, download the source freenx rpm from;

ftp://mirrors.kernel.org/centos/4.3/extras/SRPMS/freenx-0.4.4-1.centos4.src.rpm

Build the binary (warning the spec file is oddly named, freenx.spec.extras)
Then install the "new" version; rpm -Uvh freenx*.rpm --force
Then you should be able to remove it; rpm -e freenx

The differences in the spec files may make the removal possible.
--
"A personal computer is called a personal computer because it's yours,
Anything that runs on that computer, you should have control over."
Andrew Moss, Microsoft's senior director of technical policy, 2005
Continue reading on narkive:
Loading...