pkg_add -r -F update
man pkg_add says "-r Replace existing packages". I did pkg_remove transcode, then installed transcode I compiled from sources, then removed all files containing "transcode" in their name from the system and then tried to replace the OpenBSD binary package again. pkg_add transcode-1.0.2p0.tgz says Collision: the following files already exist some with same md5, some with different pkg_add -r update transcode-1.0.2p0.tgz should replace the package acording to the manpage. It doesn't - prints the same error. The manpage further says "use -F update to force the replacement" When I use pkg_add -r -F update transcode-1.0.2p0.tgz, I get the same errors. Why doesn't pkg_add do what's written in the manpage? CL<
Re: pkg_add -r -F update
On Tue, 5 Dec 2006, Karel Kulhavy wrote: > man pkg_add says "-r Replace existing packages". > > I did pkg_remove transcode, then installed transcode I compiled from > sources, then removed all files containing "transcode" in their name from > the system and then tried to replace the OpenBSD binary package again. > > pkg_add transcode-1.0.2p0.tgz says Collision: the following files already > exist > some with same md5, some with different > pkg_add -r update transcode-1.0.2p0.tgz should replace the package acording > to the manpage. It doesn't - prints the same error. > > The manpage further says "use -F update to force the replacement" > When I use pkg_add -r -F update transcode-1.0.2p0.tgz, I get the same errors. > > Why doesn't pkg_add do what's written in the manpage? > > CL< Somehow, an evil hacker got into your system, r00ted it, and broke it by deleting a bunch of files from protected system directories, probably under /usr/local. Maybe you have a Virus or other Pest. I assume (since you do not say it explicitly) that the transcode you "compiled from sources" was not done via /usr/ports/multimedia/transcode; therefore the pkg_* subsystem believed that no transcode package was installed; therefore "replacing" was not a good idea, perhaps it fell back to a simple "add". Then pkg_add detected files (whose names the evil hacker must have filtered from your post, check that your sendmail binary has not been 0wn3d!) that it felt were part of transcode. Foolishly assuming that transcode was installed (from outside the package/ports system), it refused to damage that installation. It is possible that the evil hacker missed these files since they did not contain the string "transcode" in their names, and yet there they were in the transcode packages "+CONTENTS" file. Had it worked, you could have posted, instead, that a bug in pkg_add overwrote your custom transcode installation. pkg_add probably decided it shouldn't decide what to do. Try it again with the -i switch. Dave the Patient -- "Lokot' blizok, da ne kusaesh'."
Re: pkg_add -r -F update
Salut, On Tue, Dec 05, 2006 at 10:13:38AM +0100, Karel Kulhavy wrote: > pkg_add transcode-1.0.2p0.tgz says Collision: the following files already exist > some with same md5, some with different > pkg_add -r update transcode-1.0.2p0.tgz should replace the package acording > to the manpage. It doesn't - prints the same error. > > The manpage further says "use -F update to force the replacement" > When I use pkg_add -r -F update transcode-1.0.2p0.tgz, I get the same errors. > > Why doesn't pkg_add do what's written in the manpage? Well, it does. There is just no installed package owning the file. You should rather force it to overwrite files, not packages. Which file is it anyway? Tonnerre [demime 1.01d removed an attachment of type application/pgp-signature]
Re: pkg_add -r -F update
On Tue, Dec 05, 2006 at 10:13:38AM +0100, Karel Kulhavy wrote: > The manpage further says "use -F update to force the replacement" > When I use pkg_add -r -F update transcode-1.0.2p0.tgz, I get the same errors. > > Why doesn't pkg_add do what's written in the manpage? It does, but you can't read. The manpage says: Among other things, pkg_add will refuse to replace packages as soon as it needs to run scripts that might fail (use -F update to force the replacement); Why do you assume the parenthesized comment, which is plainly part of a longer sentence, stands on its own ? In that specific case, you're trying to mix up stuff you installed manually with packages. pkg_add chooses not to do anything. The rationale is, if you're smart enough to install stuff on your own, then you're smart enough to remove them on your own. It's even helpful enough to give you a full list of colliding files. I should add that I'm *really* getting fed up fast of your messages here. I don't know, maybe you don't really speak english, but you come across as downright insulting to the people who actually put together the system you're using. Maybe our documentation isn't perfect, but since you don't even bother to read it for real, you can't really grasp what's going on. How about you start with an apology and simple questions ? Don't assume you `know', this system does work just fine for a big bunch of people... but it's not debian/redhat/whatever, so it does things differently. You don't like what you see ? go away ! see if we care...
Re: pkg_add -r -F update
On Tuesday 05 December 2006 17:13, Karel Kulhavy wrote: > pkg_add transcode-1.0.2p0.tgz says Collision: the following files already > exist some with same md5, some with different > pkg_add -r update transcode-1.0.2p0.tgz should replace the package acording > to the manpage. It doesn't - prints the same error. Feel free to include the entire error messages, especially the parts that says exactly what files conflict. > Why doesn't pkg_add do what's written in the manpage? it does exactly what it says and it works just fine but obviously you didnt remove all the files that the transcode you compiled from source installed. --- Lars Hansson
Re: pkg_add -r -F update
I have try to run pkg_add -r -F but it did not work for me. I remebered correctly I did try to delete pkg_delete with that - i option to ask you to remove the package and its dependents, I did removed the package and its dependents and re-add the package. with pkgadd. It may have some bug? but i works around with it. Have a nice day everyone. Minh - Original Message From: Marc Espie <[EMAIL PROTECTED]> To: Karel Kulhavy <[EMAIL PROTECTED]> Cc: OpenBSD Sent: Tuesday, December 5, 2006 5:41:17 AM Subject: Re: pkg_add -r -F update On Tue, Dec 05, 2006 at 10:13:38AM +0100, Karel Kulhavy wrote: > The manpage further says "use -F update to force the replacement" > When I use pkg_add -r -F update transcode-1.0.2p0.tgz, I get the same errors. > > Why doesn't pkg_add do what's written in the manpage? It does, but you can't read. The manpage says: Among other things, pkg_add will refuse to replace packages as soon as it needs to run scripts that might fail (use -F update to force the replacement); Why do you assume the parenthesized comment, which is plainly part of a longer sentence, stands on its own ? In that specific case, you're trying to mix up stuff you installed manually with packages. pkg_add chooses not to do anything. The rationale is, if you're smart enough to install stuff on your own, then you're smart enough to remove them on your own. It's even helpful enough to give you a full list of colliding files. I should add that I'm *really* getting fed up fast of your messages here. I don't know, maybe you don't really speak english, but you come across as downright insulting to the people who actually put together the system you're using. Maybe our documentation isn't perfect, but since you don't even bother to read it for real, you can't really grasp what's going on. How about you start with an apology and simple questions ? Don't assume you `know', this system does work just fine for a big bunch of people... but it's not debian/redhat/whatever, so it does things differently. You don't like what you see ? go away ! see if we care... _ ___ Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now.