Newbie Gentoo cheat sheet

Newbie Gentoo cheat sheet

offline
  • Pridružio: 02 Apr 2005
  • Poruke: 1516
  • Gde živiš: # :(){ :|:& };:

nishta specijalno,malo tipsa sa pochetnike u gentoo preuzetih sa [Link mogu videti samo ulogovani korisnici]

Managing Packages

foo is the name of the program you wish to use. It's just a random word, which you replace with what you're actually performing the operation on.

* Emerges program foo

emerge foo

* Lists all the programs that would be emerged if you installed foo, plus all their USE flags and the size of the downloads needed

emerge -pv foo

* Lists all the programs needed to install foo plus all their USE flags and the size of the downloads needed and asks if you want to install them

emerge -av foo

* Search packages for a program whose name contains 'foo' (for faster searches see TIP Speed up searches in portage)

emerge -s foo

* Search packages for a program whose description contains 'foo' (Warning! This may take a while - see link above)

emerge -S foo

* Updates the portage tree with the latest ebuilds

emerge --sync

* Lists all the programs and their dependencies which need to be upgraded and asks if you want to install them

emerge -avuD world

* Lists all system programs and their dependencies which need to be upgraded and asks if you want to install them

emerge -avuD system

* Uninstall a program

emerge -aC foo

* Emerge a specific version of a package
emerge =foo-bar/foo-1.2.3-r4
emerge =foo-1.2.3-r4 (if package name is not ambiguous)

* Evil tool for updating config files

etc-update

* Better tool for updating config files

dispatch-conf

* Unmask and install an unstable package

echo "foo-bar/foo-1.2.3-r4 ~x86" >> /etc/portage/package.keywords
emerge foo


* Mask a package to stop it from being installed/upgraded

echo foo-bar/foobar >> /etc/portage/package.mask

* View the maintainer and herd (currently in portage cvs or with [Link mogu videti samo ulogovani korisnici] )

emerge -vva foo


Managing Services

* Start service foo

/etc/init.d/foo start

* Stop service foo

/etc/init.d/foo stop

* Restart service foo

/etc/init.d/foo restart

* Add a service called foo to the default runlevel

rc-update add foo default

* Remove the service foo from the default runlevel

rc-update del foo default

* See a list of all the running services in the default runlevel

rc-status default

* See a list of all services in the boot runlevel

rc-status boot

* See a list of services with their run level

rc-update -s



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
Ko je trenutno na forumu
 

Ukupno su 1105 korisnika na forumu :: 84 registrovanih, 5 sakrivenih i 1016 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: A.R.Chafee.Jr., Abdee, Aleksej, Asteker, Avalon015, boj.an, Bojan198527, bojan581, bojan_t, BraneS, Cicumile, cole77, danyns, darcaud, delrey, Denaya, desmeki, Djokislav, Dovla 1980, drgrozozo, Dungorth, Fog of War, goxin, goxsys, Haris, ivan1973, ivan979, Jakonjveliki, JimmyNapoli, jodzula, Jose, kaisarevic1, Kalem, Kiki98TZ, Kruger, Krusarac, LostInSpaceandTime, MakiMaki02, Malahit, Manjane, max power, Meklejn, miki69, mile.ilic75, mix1, moldway, monomah, N.e.m.a.nj.a., Najax, naki011, nazgul75, Nobunaga, pedjolino76, pein, Povratak1912, Prašinar, prikolica, procesor, Pururin, rajkoplje, Razdroid, Romibrat, royst33, ruma, sekretar, skvara, Sr.Stat., Srle993, synergia, t84dar, tamno.nebo, trajkoni018, Trpe Grozni, Vanderx, vidra boy, voja64, Vrač, vukdra, x9, Yellow Pinky, Zmaj001, zmajbre, zodiac94, šumar bk2