Paludis: Difference between revisions
No edit summary |
mNo edit summary |
||
| Line 28: | Line 28: | ||
}} | }} | ||
{{ | {{Code|# cave resolve repository/x11 -x}} | ||
== Paludis on Exherbo (Developer configuration) == | == Paludis on Exherbo (Developer configuration) == | ||
| Line 41: | Line 41: | ||
With this configuration you are able to still use portage, although paludis will be sloooow. | With this configuration you are able to still use portage, although paludis will be sloooow. | ||
{{ | {{Code|# mkdir -p /etc/paludis/repositories}} | ||
{{ | {{File|/etc/paludis/keywords.conf| | ||
<pre> | <pre> | ||
*/* amd64 ~amd64 | */* amd64 ~amd64 | ||
| Line 49: | Line 49: | ||
}} | }} | ||
{{ | {{File|/etc/paludis/licenses.conf| | ||
<pre> | <pre> | ||
*/* * | */* * | ||
| Line 55: | Line 55: | ||
}} | }} | ||
{{ | {{File|/etc/paludis/use.conf| | ||
<pre> | <pre> | ||
*/* BUILD_OPTIONS: -recomended_tests -optional_tests -split strip | */* BUILD_OPTIONS: -recomended_tests -optional_tests -split strip | ||
| Line 67: | Line 67: | ||
}} | }} | ||
{{ | {{File|/etc/paludis/bashrc| | ||
<pre> | <pre> | ||
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" | CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" | ||
| Line 76: | Line 76: | ||
}} | }} | ||
{{ | {{File|/etc/paludis/general.conf| | ||
<pre> | <pre> | ||
world = /var/lib/portage/world | world = /var/lib/portage/world | ||
| Line 82: | Line 82: | ||
}} | }} | ||
{{ | {{File|/etc/paludis/repositories/installed.conf| | ||
<pre> | <pre> | ||
location = /var/db/pkg/ | location = /var/db/pkg/ | ||
| Line 91: | Line 91: | ||
}} | }} | ||
{{ | {{File|/etc/paludis/repositories/gentoo.conf| | ||
<pre> | <pre> | ||
location = /usr/portage | location = /usr/portage | ||
| Line 102: | Line 102: | ||
}} | }} | ||
{{ | {{Command|# cat /etc/portage/package.use >> /etc/paludis/use.conf}} | ||
{{ | {{Command|# cp /etc/portage/package.unmask /etc/paludis/package_unmask.conf}} | ||
{{ | {{Command|# cp /etc/portage/package.mask /etc/paludis/package_mask.conf}} | ||
{{ | {{Command|# cave sync}} | ||
{{ | {{Command|# cave resolve --continue-on-failure if-satisfied installed-packages --execute}} | ||
=== Configuration (Portage incompatible - Gentoo offical tree) === | === Configuration (Portage incompatible - Gentoo offical tree) === | ||
| Line 116: | Line 116: | ||
Now that we have played around a little with Paludis we really don't need Portage compatibility anymore, so lets adjust our configuration to speed up Paludis. | Now that we have played around a little with Paludis we really don't need Portage compatibility anymore, so lets adjust our configuration to speed up Paludis. | ||
{{ | {{Command|# mkdir -p /var/cache/distfiles}} | ||
{{ | {{Command|# mkdir -p /var/cache/paludis/gentoo/provides}} | ||
{{ | {{Command|# mkdir -p /var/cache/paludis/gentoo/names}} | ||
{{ | {{Command|# mkdir -p /var/cache/paludis/metadata}} | ||
{{ | {{Command|# chown -R paludisbuild:paludisbuild /var/cache/paludis}} | ||
{{ | {{Command|# chown -R paludisbuild:paludisbuild /var/cache/distfiles}} | ||
{{ | {{Command|# chown -R paludisbuild:paludisbuild /var/tmp/paludis}} | ||
{{ | {{Command|# chmod g+w /var/cache/distfiles}} | ||
{{ | {{Command|# chmod g+w /var/tmp/paludis}} | ||
{{ | {{File|/etc/paludis/repositories/gentoo.conf| | ||
<pre> | <pre> | ||
location = /usr/portage | location = /usr/portage | ||
| Line 147: | Line 147: | ||
}} | }} | ||
{{ | {{Command|# cave sync}} | ||
{{ | {{Command|# cave resolve --continue-on-failure if-satisfied installed-packages --execute}} | ||
=== Configuration (Portage incompatible - Automatic repository/overlay configuration) === | === Configuration (Portage incompatible - Automatic repository/overlay configuration) === | ||
{{ | {{File|/etc/paludis/repositories/layman.conf| | ||
<pre> | <pre> | ||
format = unavailable | format = unavailable | ||
| Line 163: | Line 163: | ||
}} | }} | ||
{{ | {{File|/etc/paludis/repositories/repository.conf| | ||
<pre> | <pre> | ||
format = repository | format = repository | ||
| Line 171: | Line 171: | ||
}} | }} | ||
{{ | {{File|/etc/paludis/repository.template| | ||
<pre> | <pre> | ||
format = %{repository_template_format} | format = %{repository_template_format} | ||
| Line 180: | Line 180: | ||
}} | }} | ||
{{ | {{Command|# cave sync}} | ||
{{ | {{Command|# cave show -t package repository/*}} | ||
{{ | {{Command|# cave resolve repository/<repository_name> -x}} | ||
Revision as of 16:44, 13 January 2011
Paludis on Exherbo (User configuration)
names_cache = ${root}/var/cache/paludis/names
write_cache = ${root}/var/cache/paludis/metadata
Typical Paludis configuration
Automatic repository configuration
format = repository
config_filename = /etc/paludis/repositories/%{repository_template_name}.conf
config_template = /etc/paludis/repository.template
| Code: # cave resolve repository/x11 -x |
|
{{{2}}} |
Paludis on Exherbo (Developer configuration)
Typical Paludis configuration
Paludis on Gentoo
Installation
USE="visibility xml" emerge paludis
Configuration (Portage compatible - Gentoo offical tree)
With this configuration you are able to still use portage, although paludis will be sloooow.
| Code: # mkdir -p /etc/paludis/repositories |
|
{{{2}}} |
*/* amd64 ~amd64
*/* *
*/* BUILD_OPTIONS: -recomended_tests -optional_tests -split strip */* -gtk -arts -gnome -ldap -kerberos -acl -esd kde alsa xcb */* LINGUAS: de */* INPUT_DEVICES: -* evdev */* VIDEO_CARDS: -* nvidia sys-apps/paludis visibility xml dev-util/git -perl
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j5"
world = /var/lib/portage/world
location = /var/db/pkg/ format = vdb names_cache = /var/empty provides_cache = /var/empty
location = /usr/portage
sync = rsync://rsync.europe.gentoo.org/gentoo-portage/
profiles = ${location}/profiles/default/linux/amd64/10.0/desktop
format = e
names_cache = /var/empty
distdir = /usr/portage/distfiles
Configuration (Portage incompatible - Gentoo offical tree)
Now that we have played around a little with Paludis we really don't need Portage compatibility anymore, so lets adjust our configuration to speed up Paludis.
location = /usr/portage
sync = rsync://rsync.europe.gentoo.org/gentoo-portage/
profiles = ${location}/profiles/default/linux/amd64/10.0/desktop
format = e
provides_cache = /var/cache/paludis/gentoo/provides
names_cache = /var/cache/paludis/gentoo/names
write_cache = /var/cache/paludis/metadata
distdir = /var/cache/distfiles
Configuration (Portage incompatible - Automatic repository/overlay configuration)
format = unavailable name = layman location = /var/db/paludis/repositories/layman sync = tar+http://git.exherbo.org/layman_repositories.tar.bz2 importance = -100
format = repository
config_filename = /etc/paludis/repositories/%{repository_template_name}.conf
config_template = /etc/paludis/repository.template
format = %{repository_template_format}
location = /var/db/paludis/repositories/%{repository_template_name}
sync = %{repository_template_sync}
master_repository = gentoo
Portage vs. Paludis cave commands
Sync all repositories
Portage short:
Portage long:
Paludis cave short:
Paludis cave long:
Sync specific repository/overlay
Portage short:
Portage long:
Paludis cave short:
Paludis cave long:
World update
Portage short:
Portage long:
Paludis cave short:
Paludis cave long:
Install package
Portage short:
Portage long:
Paludis cave short:
Paludis cave long:
Install package without adding it to the world file
Portage short:
Portage long:
Paludis cave short:
Paludis cave long:
Update scm packages (daily)
Portage short:
Portage long:
Paludis cave short:
Paludis cave long:
Which package ownes <file>
Portage short:
Portage long:
Paludis cave short:
Paludis cave long:
Search for broken packages and rebuild them
Portage short:
Portage long:
Paludis cave short:
Paludis cave long:
Remove unnecessary/leftover packages
Portage short:
Portage long:
Paludis cave short:
Paludis cave long: