We are still actively working on the spam issue.

Difference between revisions of "Package manager"

From InstallGentoo Wiki
Jump to: navigation, search
(portage added)
Line 58: Line 58:
 
*in = install
 
*in = install
 
*etc.
 
*etc.
 +
 +
== portage ==
 +
 +
sync:
 +
 +
<code> emerge --sync </code>
 +
 +
search:
 +
 +
<code> emerge --search <variable> </code>
 +
 +
search description:
 +
 +
<code> emerge --searchdesc <variable> </code>
 +
 +
install:
 +
 +
<code> emerge <variable> </code>
 +
 +
uninstall:
 +
 +
<code> emerge --unmerge <variable> </code>
 +
 +
pretend install:
 +
 +
<code> emerge --pretend <variable> </code>
 +
 +
fetch source only:
 +
 +
<code> emerge --fetchonly <variable> </code>
 +
 +
check USE flags:
 +
 +
<code> emerge -vp <variable> </code>
 +
 +
full system update:
 +
 +
<code> emerge --update --deep --with-bdeps=y --newuse @world </code>
  
 
[[Category:GNU/Linux]]
 
[[Category:GNU/Linux]]

Revision as of 19:38, 6 February 2014

Cleanup.png
Cleanup.png
CLEANUP CANDIDATE
Relevant discussion may be found on the talk page. Reason: No reason specified.


This is the software repositories that you will meet with some linux os. They are used to download your software in opposition to compiling them from source. In other words they automatate every thing for the dumb shit you are and allow you to install, update and remove the application you need cause youre to retarded to write them by yourself with a magnifying glass and the sun directly on your hard drive. The most common package managers are yum (RHEL - rpm) and apt (Debian - deb).


apt

You run it like this:

To install: sudo apt-get install <package>

To update: sudo apt-get update <package>

To remove: sudo apt-get remove <package>

To clean: sudo apt-get clean <package>

To search for a package with <package> in its name or "Provides" list: apt-cache search --names-only <package>

To search for a package with <query> in its description: apt-cache search <query>

To get build dependencies for <package>: sudo apt-get build-dep <package>

To remove unneeded dependencies: sudo apt-get autoremove

yum

you run it like this

to install: sudo yum install _________

Zypper

Zypper is a cli frontend for openSUSEs package manager, libzypp. The .rpm package format is used, but the package manager itself is independent from RHEL.

usage:

zypper in <name of package>

zypper rm <name of package>

installs or removes a package

zypper ar <repo>

zypper rr <repo>

adds or removes a repository

zypper up updates

zypper se <name of package> searches

original forms can be used instead of short forms:

  • se = search
  • up = update
  • in = install
  • etc.

portage

sync:

emerge --sync

search:

emerge --search <variable>

search description:

emerge --searchdesc <variable>

install:

emerge <variable>

uninstall:

emerge --unmerge <variable>

pretend install:

emerge --pretend <variable>

fetch source only:

emerge --fetchonly <variable>

check USE flags:

emerge -vp <variable>

full system update:

emerge --update --deep --with-bdeps=y --newuse @world