Re: Reconfiguring a package and other questions.

看板FB_questions作者時間11年前 (2014/07/10 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/5 (看更多)
On 2014.07.09 09:03, R. Clayton wrote: > 1: I usually install xorg from ports, and what I do in this case (which usually > happens) is reconfigure xorg-server to disable hal. However, I don't see how > packages can be reconfigured. the pkg-config man page seems to show how to > reconfigure pkg itself, not individual packages. How it possible to > reconfigure packages? Use ports or a repo that uses the options you want for its packages. If you have multiple machines that need packages with non-default compile options, you will likely want to look at poudriere. > 2: How do I undo the effects of installing a metapackage like xorg? Doing the > obvious > > # whereis X > X: /usr/local/bin/X > > # pkg remove xorg > Deinstallation has been requested for the following 1 packages: > > xorg-7.7 > > Proceed with deinstalling packages [y/N]: y > [1/1] Deleting xorg-7.7... done > > # whereis X > X: /usr/local/bin/X > > # > > doesn't do what I wanted ("pkg delete -R xorg" behaves as above). That binary was installed by another package. # pkg which $(which X) /usr/local/bin/X was installed by package xorg-server-1.12.4_7,1 'pkg info' will give you information such as dependencies, reverse dependencies, and installed files for installed packages. Each subcommand for pkg (and there are many) has a man page, so you can refer to them to see what pkg can do. > 3: I resorted to deleting xorg-server as a package and re-installing it as a > port with appropriate configuration. This works, but raises the question of > consistency between ports and packages. What is the relation between the > software in ports and the software in packages? Binary packages are prebuilt ports. You can only decide compile options at compile time, so binary packages cannot be reconfigured (but they can be rebuilt with different options). There is no difference between installing a port with a given set of options and installing a package built from the same source with the same options. _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
文章代碼(AID): #1JlODVLn (FB_questions)
文章代碼(AID): #1JlODVLn (FB_questions)