View previous topic :: View next topic |
Author |
Message |
wilburpan l33t
Joined: 21 Jan 2003 Posts: 977
|
Posted: Wed Apr 16, 2003 3:23 am Post subject: managing portage tree and compiles from source |
|
|
If I find a program source that happens not to have an ebuild, and I compile it to run on my Gentoo system, what happens if that package has an ebuild later on? Will portage start watching for upgraded versions if I do an emerge -u world?
Also, if I compile a program from source, not using an ebuild, how do I uninstall it? I've gotten used to the ease of "emerge unmerge". |
|
Back to top |
|
|
esammer Retired Dev
Joined: 05 Apr 2003 Posts: 155 Location: NY, US
|
Posted: Wed Apr 16, 2003 5:55 am Post subject: Re: managing portage tree and compiles from source |
|
|
wilburpan wrote: | If I find a program source that happens not to have an ebuild, and I compile it to run on my Gentoo system, what happens if that package has an ebuild later on? |
If you installed the package with the same layout (FSH standard) structure as the ebuild uses, you can install over it.
Quote: | Will portage start watching for upgraded versions if I do an emerge -u world? |
Doing an update effectively does an install and if there's already an entry in the portage db, it is updated to the current version numer. In other words, the existing package should be overwritten with the 'updated' version from portage.
Quote: | Also, if I compile a program from source, not using an ebuild, how do I uninstall it? I've gotten used to the ease of "emerge unmerge". |
There is no easy way and it's very package dependant. You may have to hunt and peck for files all over the place and is not for the faint of heart.
You can cheat and give the package you install manually a prefix where it can be easily removed from. For example, you can put Apache in /opt/apache-x.xx so you know right where it is and how to easily remove it (rm -rf /opt/apache-x.xx) when it gets into portage. (Of course, Apache is already in portage - just an example).
Hope that helps. |
|
Back to top |
|
|
Jimbow Guru
Joined: 18 Feb 2003 Posts: 597 Location: Silver City, NM
|
Posted: Wed Apr 16, 2003 7:20 am Post subject: |
|
|
The path of least resistance (true laziness) could be to write your own ebuild. There is a template in /usr/portage/skel.ebuild. If you do you should keep it in /usr/local/portage/$GROUP/$PACKAGE/ and set Code: | PORT_OVERLAY="/usr/local/portage" |
in your make.conf. If you can install it, you can write an ebuild. _________________ After Perl everything else is just assembly language. |
|
Back to top |
|
|
wilburpan l33t
Joined: 21 Jan 2003 Posts: 977
|
Posted: Thu Apr 17, 2003 2:08 am Post subject: |
|
|
Jimbow wrote: | The path of least resistance (true laziness) could be to write your own ebuild. |
Well, laziness is one of the main reasons why I started using Gentoo. Much easier to use portage to update and install packages, so I don't have to expend effort with rpm dependency issues.
I'll look into writing ebuilds, when I get a chance. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|