যারা Arch Linux এ new comer , তারা pacman নিয়ে যদি কোন problem face করেন, তা হইলে এই cheat-sheet টা আপনাদের অনেক উপকারে আসতে পারে।
Update and Upgrade
Update package list
Update and upgrade all
Update and upgrade aur packages
Update and upgrade yaourt packages
Get distro version
Install or find Package
Install specific package
Find available packages
Find available local packages
Show packages of group xorg
List all files from package
Pacman log file
Remove Package
Remove only a package
To remove a package and its dependencies which are not required by any other installed package
sudo pacman -Rs package_name
List all packages no longer required as dependencies
Clean package cache
Screen recording
Mount iso file
fuseiso -p testimage.iso testimagemountpoint
To unmount
fusermount -u <mountpoint>
Get IP address
Operators
used like |
Specifications |
-D, –database |
Operate on the package database |
-Q, –query |
Query the package database |
-R, –remove |
Remove package(s) from the system |
-S, –sync |
Synchronize packages |
-T, –deptest |
Check dependencies |
-U, –upgrade |
Upgrade or add package(s) to the system |
-F, –files |
Query the files database |
-V, –version |
Display version and exit |
-h, –help |
Display syntax for the given operation |
Options
used like |
Specifications |
-b, –dbpath |
Specify an alternative database location |
-r, –root |
Specify an alternative installation root |
-v, –verbose |
Output paths such as as the Root, Conf File, DB Path, Cache Dirs |
–arch <arch> |
Specify an alternate architecture |
–cachedir <dir> |
Specify al alternative package cache location |
–color <when> |
Specify when to enable coloring |
–config <file> |
Specify an alternate configuration file |
–debug |
Display debug messages |
–gpgdir <dir> |
Specify a directory of files used by GnuPG to verify package signatures |
–hookdir <dir> |
Specify an alternate directory containing hook files |
–logfile <file> |
Specify an alternate log file |
–noconfirm |
Bypass any and all “Are you sure?” messages |
–confirm |
Cancels the effects of a previous –noconfirm |
–disable-download-timeout |
Disable defaults for low speed limit and timeout on downloads |
–sysroot <dir> |
Specify an alternative system root |