Gentoo: Difference between revisions

From DWIKI
 
(31 intermediate revisions by the same user not shown)
Line 4: Line 4:
=Documentation=
=Documentation=
*[http://www.gentoo.org/proj/en/overlays/userguide.xml Overlays]
*[http://www.gentoo.org/proj/en/overlays/userguide.xml Overlays]
*[http://gentoo-wiki.com/ Gentoo Wiki] (they lost the databse :)
*[https://wiki.gentoo.org/wiki/Gentoo_Cheat_Sheet Gentoo Cheat Sheet]
*[https://wiki.gentoo.org/wiki Wiki]
*[http://devmanual.gentoo.org/ devmanual]
*[http://devmanual.gentoo.org/ devmanual]
 
*[https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel Configuring and installing kernel]


=Gentoo tools=
=Gentoo tools=
Line 23: Line 24:
  emerge -uvDNp world
  emerge -uvDNp world


[[Category: System Administration]]
=HOWTO=
==Services==
*[https://wiki.gentoo.org/wiki/OpenRC OpenRC]
*[https://wiki.gentoo.org/wiki/OpenRC_to_systemd_Cheatsheet
===Enable service===
 
rc-update add <servicename> default
 
 
 
 
==Packages==
===List available versions of package===
equery list -po [package_name]
 
== list installed packages ==
eix-installed -a
ls /var/db/pkg/*
 
==delete a package==
emerge --deselect package
 
 
==make cron.daily etc work with dcron==
Check current cron jobs for root
crontab -l
then
crontab /etc/crontab
 
= FAQ =
==Could not find a Makefile in the kernel source directory.==
 
 
==What depends on package?==
https://wiki.gentoo.org/wiki/Equery#Listing_all_packages_depending_on_a_package_with_depends_.28d.29
equery depends packagename
 
 
==@ERROR: Unknown module disfile==
=='NoneType' object has no attribute 'ebuild' None==
Oops.
==where does sync store the data?==
grep location /etc/portage/repos.conf/gentoo.conf
 
 
==use `--no-check-certificate'==
Fetch it yourself
wget --no-check-certificate  URL
and stick it in /usr/portage/distfile
 
==/etc/portage/package.use is a directory==
Files in that directory do the same
 
==mirror status==
 
[https://mirrorstats.gentoo.org/ https://mirrorstats.gentoo.org/]
 
==rebuild package==
 
emerge -vauD package
 
== which use flags are available for a package? ==
 
equery u package
 
==Profiles==
 
[https://wiki.gentoo.org/wiki/Profile_(Portage) https://wiki.gentoo.org/wiki/Profile_(Portage)]
 
=== Show available profiles ===
 
eselect profile list
 
== See how emerge is doing ==
 
tail -f /var/log/emerge.log
 
== Debugging software ==
 
*[http://www.gentoo.org/proj/en/qa/backtraces.xml http://www.gentoo.org/proj/en/qa/backtraces.xml]  


== using eselect ==


=FAQ=
[http://www.gentoo.org/doc/en/gentoo-upgrading.xml http://www.gentoo.org/doc/en/gentoo-upgrading.xml]
==Debugging software==
*http://www.gentoo.org/proj/en/qa/backtraces.xml


==using eselect==
&nbsp;
http://www.gentoo.org/doc/en/gentoo-upgrading.xml


== Reason: Filesize does not match recorded size ==


==Reason: Filesize does not match recorded size==
  ebuild foo.ebuild digest
  ebuild foo.ebuild digest


==slots==
== slots ==
*[http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=1#doc_chap4 About slots]
 
*http://devmanual.gentoo.org/general-concepts/slotting/index.html
*[http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=1#doc_chap4 About slots]  
*[http://devmanual.gentoo.org/general-concepts/slotting/index.html http://devmanual.gentoo.org/general-concepts/slotting/index.html]


If there's multiple slots, and one of them is called '3', emerge using
If there's multiple slots, and one of them is called '3', emerge using
  emerge foo:3
  emerge foo:3
&nbsp;
== IMPORTANT: 10 config files in '/etc/portage' need updating." ==
etc-update?
&nbsp;
== existing preserved libs ==
See [https://wiki.gentoo.org/wiki/Preserve-libs https://wiki.gentoo.org/wiki/Preserve-libs]
== rebuild a package ==
emerge -a packagename
== dev-db/mariadb:0 ("dev-db/mariadb:0" is blocking dev-db/mariadb-10.4.17) ==
See [https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/Portage#Blocked_packages https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/Portage#Blocked_packages]
== All ebuilds that could satisfy XX have been masked==
==ebuild is masked or unavailable==
[[ATI OpenGL on Gentoo]]
[[Category: System Administration]]

Latest revision as of 10:32, 7 May 2024

Links

Documentation

Gentoo tools

Find out what ebuild will provide a file

What ebuild does a file belong to?

equery belongs

http://www.coyotegulch.com/products/acovea/

Docs

Tips

emerge -uvDNp world

HOWTO

Services

Enable service

rc-update add <servicename> default



Packages

List available versions of package

equery list -po [package_name]

list installed packages

eix-installed -a
ls /var/db/pkg/*

delete a package

emerge --deselect package


make cron.daily etc work with dcron

Check current cron jobs for root

crontab -l 

then

crontab /etc/crontab

FAQ

Could not find a Makefile in the kernel source directory.

What depends on package?

https://wiki.gentoo.org/wiki/Equery#Listing_all_packages_depending_on_a_package_with_depends_.28d.29

equery depends packagename


@ERROR: Unknown module disfile

'NoneType' object has no attribute 'ebuild' None

Oops.

where does sync store the data?

grep location /etc/portage/repos.conf/gentoo.conf


use `--no-check-certificate'

Fetch it yourself

wget --no-check-certificate  URL

and stick it in /usr/portage/distfile

/etc/portage/package.use is a directory

Files in that directory do the same

mirror status

https://mirrorstats.gentoo.org/

rebuild package

emerge -vauD package

which use flags are available for a package?

equery u package

Profiles

https://wiki.gentoo.org/wiki/Profile_(Portage)

Show available profiles

eselect profile list

See how emerge is doing

tail -f /var/log/emerge.log

Debugging software

using eselect

http://www.gentoo.org/doc/en/gentoo-upgrading.xml

 

Reason: Filesize does not match recorded size

ebuild foo.ebuild digest

slots

If there's multiple slots, and one of them is called '3', emerge using

emerge foo:3

 

IMPORTANT: 10 config files in '/etc/portage' need updating."

etc-update?

 

existing preserved libs

See https://wiki.gentoo.org/wiki/Preserve-libs

rebuild a package

emerge -a packagename

dev-db/mariadb:0 ("dev-db/mariadb:0" is blocking dev-db/mariadb-10.4.17)

See https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/Portage#Blocked_packages

All ebuilds that could satisfy XX have been masked

ebuild is masked or unavailable

ATI OpenGL on Gentoo