pkg_add/pkg_delete
Dobrij den , citizens of this ship. While upgrading/updating my 3.6-old box to 4.6 I noticed some issues. Here it comes: I want -F force-flag for pkg_delete - I know what I'm dealing with and I don't want to spend my evening in front of a laptop-screen with my bottle of Stolichnaya. I want to finish it and go to the club, not sitting and rm -rf /all/that/crap/pkg_delete/could/not/fix. I want to overwrite files. I want pkg-tools to be able to remove all the crap I DON'T WANT TO REMOVE MANUALLY. Upgrade process for OpenBSD base is great! I wish it was the same for pkges. Each time I have to upgrade I hope pkg-tools got more intelligent, but not. -F-flag is for force - give me force to remove and overwrite everything! If I break - it's up to me. //Peace, war and Hallelujah! Ze russian.
Re: pkg_add/pkg_delete
On Fri, 29 Jan 2010, Maxim Bourmistrov wrote: Dobrij den , citizens of this ship. While upgrading/updating my 3.6-old box to 4.6 I noticed some issues. Here it comes: I want -F force-flag for pkg_delete - I know what I'm dealing with and I don't want to spend my evening in front of a laptop-screen with my bottle of Stolichnaya. I want to finish it and go to the club, not sitting and rm -rf /all/that/crap/pkg_delete/could/not/fix. I want to overwrite files. I want pkg-tools to be able to remove all the crap I DON'T WANT TO REMOVE MANUALLY. I WANT I WANT I DON'T WANT I I I *I*. I also would like a million dollars each time I take a dump. Upgrades are supported from n to n+1. Upgrade process for OpenBSD base is great! I wish it was the same for pkges. Each time I have to upgrade I hope pkg-tools got more intelligent, but not. Yes, it is a known fact that pkg tools under OpenBSD are very bad, I suggest you try pkgsrc, it is much better. -F-flag is for force - give me force to remove and overwrite everything! If I break - it's up to me. Sorry, but the force is not with you. //Peace, war and Hallelujah! Ze russian. You mean inshallah. -- Antoine
Re: pkg_add, pkg_delete -- can't force
Thanks to you both for responding. I am confident that I will get this working. I appreciate it. However, my primary concern was with the pkg_del and pkg_add command, and not so much my concern with Horde. Like I stated in my initial thread, the -F switch does not seem to work as it should. Is it broken, or am I doing something wrong? I can't seem to remove a package no matter what I do if it is a dependency of another installed package. I likewise am not able to force an install if there dependecies are not present, or they don't quite jibe (details below). I find it hard to believe it is broken, so I am wondering if I am just doing something wrong here... Thanks. Chris wrote: Hello I have installed openbsd 3.8. I am trying to make an email server with the Horde Interface. I installed all necessary packages as binaries with the pkg_add utility. When I finally got Horde up and and running, I found that php5 was a dependency for horde-3.0.4. The horde docs and the test.php file state very clearly that php5 is experimental, and is not recommended. Furthermore, many of the features I need (like mysql support) were not compiled in the binary. So I tried to uninstall all the php5 packages that were installed as dependencies and replace them with php4. I found the the pkg_delete -F command would not work. It seemed to completely ignore the -F flag. For example pkg_delete -F baddepend php5-mcrypt-5.0.4 would complain that horde and php5 must be uninstalled as well. I tried all the arguments for the -F flag, and finally used the dependencies option, which worked as one might expect -- it removed the package and all of its dependencies. So, I figured I would try it from the other side. I compiled php4 with ports. I made my own make file to include the options that horde and I wanted. After it was installed, I tried to install horde. It would not let me, because php5 was a dependency. So I tried the -F flag. Again, this did not work: # pkg_add -F conflicts horde-3.0.4.tgz Can't install php5-core-5.0.4p0 because of conflicts (php4-core-4.4.0p0) /usr/sbin/pkg_add: php5-core-5.0.4p0:Fatal error I thought that the -F flag would force the install despite the fact that a conflicting package was found. It did not. So, either this is broken, or I am missing something here... How can I get Horde3 installed without using php5? I prefer not to have to resort to installing from the tarball, as I like the installation db to be accurate, and I want to stay within the audited code. Any suggestions? Thanks. Chris
Re: pkg_add, pkg_delete -- can't force
Chris wrote: How can I get Horde3 installed without using php5? I prefer not to have to resort to installing from the tarball, as I like the installation db to be accurate, and I want to stay within the audited code. I ran into the same problem (php5 as a dependency but not supported by Horde...). What I did is simply installed horde, imp... for the official tarballs. Anyway, I still have problem under 3.8 and current with Horde, some https pids get killed while accessing some pages. Since I did not have the time to debug this for now, I'm stuck with horde2. Antoine
pkg_add, pkg_delete -- can't force
Hello I have installed openbsd 3.8. I am trying to make an email server with the Horde Interface. I installed all necessary packages as binaries with the pkg_add utility. When I finally got Horde up and and running, I found that php5 was a dependency for horde-3.0.4. The horde docs and the test.php file state very clearly that php5 is experimental, and is not recommended. Furthermore, many of the features I need (like mysql support) were not compiled in the binary. So I tried to uninstall all the php5 packages that were installed as dependencies and replace them with php4. I found the the pkg_delete -F command would not work. It seemed to completely ignore the -F flag. For example pkg_delete -F baddepend php5-mcrypt-5.0.4 would complain that horde and php5 must be uninstalled as well. I tried all the arguments for the -F flag, and finally used the dependencies option, which worked as one might expect -- it removed the package and all of its dependencies. So, I figured I would try it from the other side. I compiled php4 with ports. I made my own make file to include the options that horde and I wanted. After it was installed, I tried to install horde. It would not let me, because php5 was a dependency. So I tried the -F flag. Again, this did not work: # pkg_add -F conflicts horde-3.0.4.tgz Can't install php5-core-5.0.4p0 because of conflicts (php4-core-4.4.0p0) /usr/sbin/pkg_add: php5-core-5.0.4p0:Fatal error I thought that the -F flag would force the install despite the fact that a conflicting package was found. It did not. So, either this is broken, or I am missing something here... How can I get Horde3 installed without using php5? I prefer not to have to resort to installing from the tarball, as I like the installation db to be accurate, and I want to stay within the audited code. Any suggestions? Thanks. Chris