Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Project PFG (Portage Free Gentoo) || Latest: 0.6
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Thu Jan 22, 2009 3:31 am    Post subject: Project PFG (Portage Free Gentoo) || Latest: 0.6 Reply with quote

PFG
Portage Free Gentoo (PFG) is a project from zen-sources.org

DO NOT BOTHER CIARANM, OR ANYONE ELSE PALUDIS DEV OR NOT ABOUT PALUDIS USAGE OR OTHER DUMB QUESTIONS, THIS SCRIPT SHOULD ONLY BE USED BY USERS WHO KNOW WHAT THEY ARE DOING, In other words, no prior paludis usage == don't use this script until you educate yourself
All information can be found in man paludis, and on the paludis website: http://paludis.pioto.org

------
What is it?
- A set of script(s) to remove portage from any gentoo installation

Script(s)? Is there more than one?
- Yes, one for stable installations (KEYWORDS=arch), and one for unstable installations/funtoo tarball function (KEYWORDS=~arch)

Why is it?
- Because nobody wants or needs two package managers.
- Because using two package managers to install things can certainly lead to things breaking and annoyances (even on basic commands like ebuild, which will re-chown distfiles to portage before fetching anything)
- Because un-used files are annoying (/etc/portage /usr/lib/portage, /var/tmp/portage, /etc/make.conf, /etc/make.profile, etc)
- Because some people want to remove python from their gentoo, but portage is kind of a big road block in doing so

How does it work?
- Performs a series of steps that include, but not limited to:
Installing paludis, configuring paludis, moving /usr/portage + moving distfiles, editing gentoo profile for paludis, importar portage, installing eselect-config module, and the rest that is necessary.

How do you use it
- By executing it

But what do those arguments mean?
- The script accepts the arguments: --normal (-n), --rm-portage (-rmp), --expert (-e), and --help (-h)
- Suits the purpose of people who don't have paludis yet (maybe on a fresh stage or not), people who already have paludis installed but want to remove portage, and people who want to run only certain steps.

OK!!!!11one!1! So where do get it!?!?!?!?!?
- From the zen-sources website: http://zen-sources.org/project/Misc
- ^ Changelogs, more info, etc is located there as well
- But, beware: The script is still just meant for testing purposes still

WAIT! So does it work if it's only for testing purposes?
- Yes, numerous people have already tested it with success (including myself), others have had some road bumps and reported the problems to me so I could fix them

But, what about portage commands? I can't use them anymore :(
- Not unless you install portage libraries, yes.
- But you don't NEED to use them, the common ones needed are: etc-update, env-update, ebuild, repoman, blah
- But these are replaced by: eselect config (eselect-config module installed from zen-overlay), eselect env, and appareo

Portage can always be revived with paludis -u portage; paludis -i portage, but it may be good practice to make backups of all your configs and such before running this script

---------
I deleted the root check because I'm trusting anyone who uses this is competent enough to know they need to be root when executing this

ONLY FOR TESTING, explosions, failures, etc are what I am looking to be reported. I am not looking for someone to come crying to me because they broke their system
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.


Last edited by cheater1034 on Sat Feb 14, 2009 6:19 pm; edited 12 times in total
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Thu Jan 22, 2009 4:36 am    Post subject: Reply with quote

re-released, i had to make step 10 not execute every time, so it now asks the user if they are on a new funtoo ~ stage (you don't want to run that nested for if you're not :))
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
MageSlayer
Apprentice
Apprentice


Joined: 26 Jul 2007
Posts: 250
Location: Ukraine

PostPosted: Thu Jan 22, 2009 9:20 am    Post subject: Reply with quote

Yes!!!
At last. Guys, you rock!!!
I asked that question over and over, and you provided th answer.

Thanks a lot.

P.S. Not tested yet, but feel happy :)
Back to top
View user's profile Send private message
Non_E
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 160
Location: Czech Republic

PostPosted: Thu Jan 22, 2009 10:27 am    Post subject: Reply with quote

Hello,
please take no offence, I do not understand how is this usefull.
_________________
Only Sith deals in absolutes.
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2843

PostPosted: Thu Jan 22, 2009 1:43 pm    Post subject: Reply with quote

Code:
Complete!
You now have a new paludis config in: /etc/paludis

Don't forget to double check the configuration yourself before using it.

* Step 3 - Making directories and adjusting permissions
chmod: nie ma dostępu do `/var/tmp/paludis': No such file of directory
chown: nie ma dostępu do `/var/tmp/paludis': No such file of directory
* Step 4 - Copying gentoo tree to /var


In my gentoo box /var/tmp is link to /tmp, /tmp is 512M tmpfs (ramdisk). tmp dir for emerge is /root/tmp/portage, where can I set it for paludis?
Back to top
View user's profile Send private message
cruzki123
Apprentice
Apprentice


Joined: 16 May 2008
Posts: 249

PostPosted: Thu Jan 22, 2009 8:11 pm    Post subject: Reply with quote

Non_E wrote:
Hello,
please take no offence, I do not understand how is this usefull.


I not use paludis, but I think that if someone use paludis and want to install a gentoo in a machine they don't need to:

1- install portage
2- install paludis (or pkcore)
3- configure paludis
4- remove portage
5- pray don't broke anything
6 :P
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Thu Jan 22, 2009 8:57 pm    Post subject: Reply with quote

SlashBeast wrote:
Code:
Complete!
You now have a new paludis config in: /etc/paludis

Don't forget to double check the configuration yourself before using it.

* Step 3 - Making directories and adjusting permissions
chmod: nie ma dostępu do `/var/tmp/paludis': No such file of directory
chown: nie ma dostępu do `/var/tmp/paludis': No such file of directory
* Step 4 - Copying gentoo tree to /var


In my gentoo box /var/tmp is link to /tmp, /tmp is 512M tmpfs (ramdisk). tmp dir for emerge is /root/tmp/portage, where can I set it for paludis?


You want to put the PALUDIS_TMPDIR variable (like portage_tmpdir variable) into /etc/paludis/bashrc to point to the tmp directory you want.

Then you can run those chown commands manually, chown -R paludisbuild:paludisbuilt /path/to/tmpdir/paludis

cruzki123 wrote:
Non_E wrote:
Hello,
please take no offence, I do not understand how is this usefull.


I not use paludis, but I think that if someone use paludis and want to install a gentoo in a machine they don't need to:

1- install portage
2- install paludis (or pkcore)
3- configure paludis
4- remove portage
5- pray don't broke anything
6 :P


If it was that simple i wouldn't have made this script.
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Thu Jan 22, 2009 10:41 pm    Post subject: Reply with quote

The next version of the script will include changes to make it less automated (so you can stop if something is wrong like slashbeast), and i'm going to allow to set the TMPDIR variable. I do not think I am going to add the ability to put repositories anywhere else except /var/paludis/repositories (Default), putting that stuff in var makes too much sense to put it anywhere else.

Also I will work on the one for stable installs/stages soon too.

Non_E wrote:
Hello,
please take no offence, I do not understand how is this usefull.

It's useful because it removes portage, as the script is advertised :wink: , I don't want 2 package managers installed and neither should you. Paludis is perfectly stable now and there is no reason that you need to keep 2 package managers installed.
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2843

PostPosted: Thu Jan 22, 2009 10:52 pm    Post subject: Reply with quote

I tried this script on fresh stage3 updated to testing (I want replace my gentoo with new, _working_ gentoo. :P) and script dont uninstall portage at all.

Code:
mizore / # paludis -u portage --all-versions
Building unmerge list... done

These packages will be uninstalled:

* app-admin/python-updater-0.6-r1::installed requires <sys-apps/portage-2.1.6.7:0::installed-unpackaged, sys-apps/portage-2.2_rc23::installed>
* dev-java/icedtea6-bin-1.3.1-r1::installed requires <sys-apps/portage-2.2_rc23::installed, sys-apps/portage-2.1.6.7:0::installed-unpackaged>
* sys-libs/glibc-2.9_p20081201-r1::installed requires <sys-apps/portage-2.2_rc23::installed, sys-apps/portage-2.1.6.7:0::installed-unpackaged>
* sys-apps/portage-2.1.6.7:0::installed-unpackaged
* sys-apps/portage-2.2_rc23::installed


addng --permit-unsafe-uninstalls is good idea?
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Fri Jan 23, 2009 12:08 am    Post subject: Reply with quote

the procedure for removing portage is like (not including editing the profile):

Code:
rm /var/db/pkg/world
cp /var/lib/portage/world /var/db/pkg
mkdir temp
cp /usr/lib64/portage/bin/ebuild /usr/lib64/portage/bin/repoman /usr/lib64/portage/bin/xpak /usr/lib64/portage/bin/etc-update /usr/lib64/portage/bin/env-update /usr/lib64/portage/bin/quickpkg /usr/lib64$
paludis -u portage --permit-unsafe-uninstalls
mv temp/* /usr/bin
rm -rf temp
rm -rf /etc/make.conf /etc/make.profile /etc/portage /usr/portage /usr/lib/portage /usr/lib64/portage /usr/lib32/portage /var/lib/portage /var/log/portage /var/cache/edb/dep/usr/portage
mkdir dir
importare -il dir/ sys-apps/portage 2.1.6.7 0
rm -rf dir
echo ">sys-apps/portage-2.1.6.7" >> /etc/paludis/package_mask.conf


the portage 2.2_rc23 _should_ be gone, but for some reason it seemed to have failed there? (it worked in my testing)

What it basically does, is first it uninstalls portage regardless of dependencies (--permit-unsafe), and then it restores some backed up portage binaries, and then continues on.

The package you see in :installed-unpackages is a DUMMY package, which the only reason the script does that is because of some ebuilds that check for ONLY portage (i am going to go to bugzilla, and get it to be || paludis || pkgcore, as it is on other ebuilds), which would eventually eliminate the need for the portage dummy package (which is what i want ultimately)

I have a much prettier script on by box that i'm not done yet (0.2), it has a check for the emerge binary to make sure portage successfully uninstalled, something like this after the paludis -u portage command:
Code:
if [[ -x /usr/bin/emerge ]] ; then
        echo
        eerror "\033[0m\033[1mFailed to Uninstall Portage\033[0m"
        echo
        exit 0
fi


Also in 0.2 i will add a read so that the user doesn't have to re-compile paludis every time (which is redundant if you need to ctrl + z for something), but it still checks for the paludis binary so if you are lying it will bail out.

Anyway, you can run paludis -u portage::installed --permit-unsafe-uninstalls . I'm just not sure why the script would have failed for you there (I will run 0.2 again and make sure it does this correctly)

Also, are you sure you had 0.1? Because i know i forgot to put --permit-unsafe in the first scripts i pasted

The other things i want to do are removing stuff like the portage group, and fixing the ebuild command so it won't chown every time it fetches something (and i think it wants to look to /usr/portage/distfiles? instead of /var/paludis/repositories/gentoo/distfiles --- the other thing i want to do is move distfiles to /var/paludis/distfiles or something like that) I'm not a fan of having distfiles in the gentoo repository.

The only thing is, editing the ebuild command is probably going to be editing some python modules instead :)

All these goodies will come soon in the script
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Fri Jan 23, 2009 3:40 am    Post subject: Reply with quote

v0.2 uploaded, lots of fixes, improvements, changes, etc.

First post edited with notes, and of course release notes on zen site.

*edit*
Intro of the script snapshot:
http://img299.imageshack.us/img299/2451/snapshot3on1.png
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
MageSlayer
Apprentice
Apprentice


Joined: 26 Jul 2007
Posts: 250
Location: Ukraine

PostPosted: Fri Jan 23, 2009 6:48 am    Post subject: Reply with quote

Just an idea - make expert mode command switch to give an option to choose what action to do. Just like "Enter number of your choice..."
I mean action from list where "install paludis", "run portage2paludis" and so on.

Not all people need to reemerge paludis and rebuild its repo files, but want only get rid of portage properly.
Thanks.
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2843

PostPosted: Fri Jan 23, 2009 9:01 am    Post subject: Reply with quote

I downloaded 0.1 form zen-sources website yesterday. Imho everythink work, portage may stay (I use dispatch-conf and ebuild).
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Fri Jan 23, 2009 3:39 pm    Post subject: Reply with quote

MageSlayer wrote:
Just an idea - make expert mode command switch to give an option to choose what action to do. Just like "Enter number of your choice..."
I mean action from list where "install paludis", "run portage2paludis" and so on.

Not all people need to reemerge paludis and rebuild its repo files, but want only get rid of portage properly.
Thanks.


or the script could just detect if you already have paludid installed and skip that step if it does
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Fri Jan 23, 2009 8:06 pm    Post subject: Reply with quote

rmh3093 wrote:
MageSlayer wrote:
Just an idea - make expert mode command switch to give an option to choose what action to do. Just like "Enter number of your choice..."
I mean action from list where "install paludis", "run portage2paludis" and so on.

Not all people need to reemerge paludis and rebuild its repo files, but want only get rid of portage properly.
Thanks.


or the script could just detect if you already have paludid installed and skip that step if it does


The script already detects if paludis is installed, it just won't skip the step automatically.

I need to clean up the script a bit first, and create the stable counterpart too.

It seems everything to successfully do it is done, it just needs some frosting now. But portage2paludis detects if you already have a paludis configuration, so it isn't going to overwrite any configs or anything (if the config directory already exists). But it would still need to overwrite repositories/gentoo.conf and installed-unpackaged.conf regardless of whether or not you already have a configuration.

So basically the question "is paludis already installed" is a pretty legitamite question IMO, the check is only to not re-compile paludis, but if the script doesn't find paludis it will still bail out.
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Sat Jan 24, 2009 2:02 am    Post subject: Reply with quote

v0.3 released!!!!!

This is the closest release to completion, i'd actually have faith to run it on my own ~5 month old gentoo install, so i did! (see first post/quote)

MageSlayer, your suggestion was taken to a couple additional levels, hopefully you find what you're looking for in 0.3 ;)

*edit*
Still some problems with some portage commands, like ebuild and repoman. These should be easily corrected soon though
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Sat Jan 24, 2009 7:26 pm    Post subject: Reply with quote

bump for v0.4
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Mon Jan 26, 2009 2:35 pm    Post subject: Reply with quote

v5 worked nice for me, thanks!
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
MageSlayer
Apprentice
Apprentice


Joined: 26 Jul 2007
Posts: 250
Location: Ukraine

PostPosted: Mon Jan 26, 2009 4:20 pm    Post subject: Reply with quote

Thanks a lot, cheater1034
I'll test it asap.

BTW, maybe it's worth testing if /usr/local/portage directory (overlays) exists and create repository(ies) for them also?
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Mon Jan 26, 2009 7:01 pm    Post subject: Reply with quote

MageSlayer wrote:
Thanks a lot, cheater1034
I'll test it asap.

BTW, maybe it's worth testing if /usr/local/portage directory (overlays) exists and create repository(ies) for them also?


That's a good thought :wink:

I have a little more work to do on the script, and then I'll call it done. 8)
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
M
Guru
Guru


Joined: 12 Dec 2006
Posts: 432

PostPosted: Tue Jan 27, 2009 9:03 am    Post subject: Reply with quote

If I understood you import portage with importare but with empty dir and just copy ebuild,repoman, modules etc. Would it not be better to copy those files in dir/ and then import portage. So we can at some point totaly remove em or upgrade or something like that.
Back to top
View user's profile Send private message
MageSlayer
Apprentice
Apprentice


Joined: 26 Jul 2007
Posts: 250
Location: Ukraine

PostPosted: Wed Feb 04, 2009 8:11 pm    Post subject: Reply with quote

cheater1034

v5 did expert portage remove just fine :). Thanks a lot.
Now I am not required to update portage for every ebuild :)
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Sat Feb 14, 2009 3:42 am    Post subject: Reply with quote

An update:

I made an eselect patch, based on stuff from eclectic, and paludis has the new digester (appareo), so the next PFG will go further eliminating portage files all together.

This means:
No more etc-update, env-update, ebuild, repoman, etc.

instead:
eselect config *, eselect env, appareo, etc.
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Sat Feb 14, 2009 6:17 pm    Post subject: Reply with quote

MageSlayer wrote:
BTW, maybe it's worth testing if /usr/local/portage directory (overlays) exists and create repository(ies) for them also?

This is done by portage2paludis actually, but i will make it so it relocates to /var/paludis/repositories/local if it exists

-----
BUMPED

Re-made first post, since 0.6 is out.

No more portage commands, stable version available since 0.5, etc.
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1160

PostPosted: Thu Feb 19, 2009 5:02 pm    Post subject: Reply with quote

unfortunately i can't use it because i need cyrus-sasl
which in turn needs portage for postfix.
if i can only find a suitable authentication for postfix.
of course there's importare but don't know how to use it.
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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