Basic Operations

Basic Operations

Basic operations Action Arch Red Hat/Fedora Debian/Ubuntu SLES/openSUSE Gentoo zypper install or emerge [- Install a package(s) by name pacman -S dnf install apt install zypper in a] zypper remove or Remove a package(s) by name pacman -Rs dnf remove apt remove emerge -vc zypper rm Search for package(s) by searching the expression in name, description, short zypper search or description. What exact fields are being pacman -Ss dnf search apt search emerge -S zypper se [-s] searched by default varies in each tool. Mostly options bring tools on par. Upgrade Packages - Install packages which have apt update and zypper update or emerge - pacman -Syu dnf upgrade an older version already installed then apt upgrade zypper up uDN @world Upgrade Packages - Another form of the update command, which can perform more complex updates -- like distribution upgrades. When the apt update and dnf distro- emerge - usual update command will omit package pacman -Syu then apt dist- zypper dup sync uDN @world updates, which include changes in upgrade dependencies, this command can perform those updates. Clean up all local caches. Options might limit pacman -Sc dnf clean apt autoclean eclean what is actually cleaned. autoclean removes or pacman - zypper clean all or apt clean distfiles only unneeded, obsolete information. Scc pacman - Remove dependencies that are no longer Qdtq | dnf emerge -- needed, because e.g. the package which apt autoremove zypper rm -u pacman -Rs autoremove depclean needed the dependencies was removed. - 1 pacman -Qmq dnf Remove packages no longer included in any aptitude purge | pacman - repoquery -- repositories. '~o' Rs - extras pacman -D Mark a package previously installed as a dnf mark apt-mark emerge -- -- dependency as explicitly required. install manual select asexplicit dnf install Install package(s) as dependency / without pacman -S and then dnf apt-mark auto emerge -1 marking as explicitly required. --asdeps mark remove apt install -- download-only Only downloads the given package(s) without (into the package zypper -- emerge -- pacman -Sw dnf download unpacking or installing them cache) or apt download-only fetchonly download (bypass the package cache) Start a shell to enter multiple commands in one apt-config zypper shell session shell read read see Show a log of actions taken by the software read /var/log/ /var/log/pa dnf history /var/log/zypp/hi /var/log/p management. dpkg.log cman.log story ortage Get a dump of the whole system information - Prints, Saves or similar the current state of the see see package management system. Preferred output apt-cache emerge -- /var/lib/pa /var/lib/rpm is text or XML. (Note: Why either-or here? No stats info cman/local /Packages tool offers the option to choose the output format.) apt install e-mail delivery of package changes apt- listchanges 2 Querying specific packages Action Arch Red Hat/Fedora Debian/Ubuntu SLES/openSUSE Gentoo Show all or most information about a pacman - apt show or emerge -S, package. The tools' verbosity for the Si or zypper info or dnf list or dnf info apt-cache emerge -pv or default command vary. But with options, pacman - zypper if policy eix the tools are on par with each other. Qi Display local package information: Name, pacman - rpm -qi / dnf info dpkg -s or zypper info or rpm emerge -pv or version, description, etc. Qi installed aptitude show -qi emerge -S emerge -pv apt-cache Display remote package information: pacman - and emerge -S dnf info show or zypper info Name, version, description, etc. Si or equery aptitude show meta pacman - equery files Display files provided by local package rpm -ql dpkg -L rpm -Ql Ql or qlist dnf repoquery -l or pacman - Display files provided by a remote package repoquery -l (from apt-file list pfl Fl package yum-utils) rpm -qf (installed only) or equery pacman - dnf provides (everything) dpkg -S or Query the package which provides FILE zypper search -f belongs or Qo or repoquery -f (from dlocate qfile package yum-utils) pacman - List the files that the package holds. Again, Ql or equery files this functionality can be mimicked by dnf repoquery -l dpkg-query -L rpm -ql pacman - or qlist other more complex commands. Fl Displays packages which provide the given pacman -F dnf provides apt-file zypper what- equery exp. aka reverse provides. Mainly a search provides or zypper belongs (only shortcut to search a specific field. Other wp installed packages) 3 tools might offer this functionality through or pfl the search command. Search all packages to find the one which equery apt-file holds the specified file. auto-apt is using pacman -F dnf provides zypper search -f belongs or search this functionality. qfile pacman - apt-get rpm -q -- equery Show the changelog of a package rpm -q --changelog Qc changelog changelog changes -f 4 Querying package lists Action Arch Red Hat/Fedora Debian/Ubuntu SLES/openSUSE Gentoo Search for package(s) by searching the expression in name, description, short description. pacman zypper search or What exact fields are being dnf search apt search emerge -S or eix -Ss zypper se -s searched by default varies in each tool. Mostly options bring tools on par. Lists packages which have an update available. Note: Some dnf list apt-get upgrade zypper list-updates pacman provide special commands to limit updates or dnf (press n to only see the or zypper patch-check emerge -uDNp @world -Qu the output to certain installation check-update list) (just for patches) sources, others use options. Display a list of all packages in all installation sources that are apt-cache handled by the packages dumpavail or apt- pacman dnf list portageq management. Some tools provide cache dump (Cache zypper packages -Sl available all_best_visible / options or additional commands only) or apt-cache to limit the output to a specific pkgnames installation source. Generates a list of installed pacman dnf list dpkg --list | zypper search -- qlist -IC packages -Q installed grep ^i installed-only List packages that are installed pacman zypper se -si | grep but are not available in any dnf list extras deborphan eix-test-obsolete -Qm 'System Packages' installation source (anymore). List packages that were recently dnf list recent aptitude search eix-diff 5 added to one of the installation '~N' or aptitude sources, i.e. which are new to it. forget-new List installed local packages along pacman zypper search -s or rpm -qa dpkg -l qlist -ICv with version -Q rpm -qa aptitude search Search locally installed package pacman rpm -qa '~i(~n $name|~d eix -S -I for names or descriptions -Qs '*<str>*' $description)' List packages not required by any pacman dnf leaves deborphan -anp1 emerge -pc other package -Qt emerge -pvO List packages installed explicitly pacman dnf history apt-mark @selected or eix -- (not as dependencies) -Qe userinstalled showmanual selected List packages installed pacman apt-mark showauto automatically (as dependencies)}} -Qd 6 Querying package dependencies Action Arch Red Hat/Fedora Debian/Ubuntu SLES/openSUSE Gentoo dnf repoquery --alldeps Display packages which require X apt-cache rdepends or pacman - --whatrequires or zypper search emerge - to be installed, aka show reverse aptitude search Sii repoquery -- --requires pvc dependencies. ~D$pattern whatrequires Display packages which conflict with given expression (often dnf repoquery -- aptitude search package). Search can be used as conflicts '~C$pattern' well to mimic this function. pacman - List all packages which are required Si or dnf repoquery -- apt-cache depends or zypper info for the given package, aka show emerge -ep pacman - requires or repoquery -R apt-cache show --requires dependencies. Qi equery List what the current package zypper info dnf provides dpkg -s or aptitude show files or provides --provides qlist aptitude search List all packages that require a dnf repoquery --alldeps ~D{depends,recommends, zypper search equery particular package --whatrequires suggests}:$pattern or --requires depends -a aptitude why Display all packages that the dnf list obsoletes apt-cache show specified packages obsoletes. Generates an output suitable for processing with dotty for the given apt-cache dotty package(s). 7 Installation sources management Action Arch Red Hat/Fedora Debian/Ubuntu SLES/openSUSE Gentoo edit edit edit edit /etc/zypp/ Installation sources layman or eselect /etc/pacman.c /etc/yum.repos.d /etc/apt/sources. repos.d/$ management repository onf /${REPO}.repo list {REPO}.repo Add an installation source to the system. Some tools provide additional commands for certain sources, others allow all types of source URI for the add edit /etc/ zypper command. Again others, like apt /etc/pacman.c yum.repos.d/ apt-cdrom add layman or overlays service-add and dnf force editing a sources onf *.repo list. apt-cdrom is a special command, which offers special options design for CDs/DVDs as source. Refresh the information about pacman -Sy dnf clean zypper the specified installation (always upgrade expire-cache and emerge --sync or apt-get update refresh or source(s) or all installation the whole system then dnf check- layman -S zypper ref sources. afterwards) update Prints a list of all installation cat cat zypper layman -l or eselect sources including important /etc/pacman.d /etc/yum.repos.d apt-cache policy service-list repository list information like URI, alias etc. /mirrorlist /* List all packages from a certain paclist eix --in-overlay repo <repo> Disable an installation source dnf -- emerge for an operation disablerepo= package::repo-to-use Download packages

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    15 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us