You are on page 1of 17

‫‪Home‬‬ ‫‪Packages‬‬ ‫‪Forums‬‬ ‫‪Wiki‬‬ ‫‪Bugs‬‬ ‫‪AUR‬‬ ‫‪Download‬‬

‫‪create account‬‬ ‫‪log in‬‬

‫‪page‬‬ ‫‪discussion‬‬ ‫‪view source‬‬ ‫‪history‬‬


‫‪navigation‬‬
‫‪Main page‬‬
‫‪Categories‬‬ ‫)اﻟﻌﺮﺑﯿﺔ( ‪pacman‬‬
‫‪Getting involved‬‬
‫‪Wiki new s‬‬ ‫ﯾﻌﺪ ﻣﺪﯾﺮ اﻟﺤﺰم ‪ pacman‬واﺣﺪ ﻣﻦ اﻟﺨﺼﺎﺋﺺ اﻟﻤﻤﯿﺰة ﻟـ ‪ .Arch Linux‬ﻓﻬﻮ ﯾﺠﻤﻊ ﺑﯿﻦ ﺣﺰم ذات ﺑﻨﯿﺔ )‪ (binary‬ﺑﺴﯿﻄﺔ و ﻧﻀﺎم ﺑﻨﺎء ﺳﻬﻞ اﻹﺳﺘﻌﻤﺎل ‪.‬‬
‫‪Random page‬‬ ‫اﻟﻬﺪف ﻣﻦ إﺳﺘﻌﻤﺎل ‪ pacman‬هﻮ إدارة اﻟﺤﺰم وﺑﮑﻞ ﺳﻬﻮﻟﺔ ﻣﻤﮑﻨﺔ ‪ ,‬ﺳﻮاء أﮐﺎن ﻣﺼﺪر هﺬﻩ اﻟﺤﺰم اﻟﻤﺨﺎزن اﻟﺮﺳﻤﯿﺔ ﻵرش أو ﺑﻨﺎء ﺧﺎص ﺑﺎﻟﻤﺴﺘﺨﺪﻣﯿﻦ ‪.‬‬

‫‪search‬‬ ‫ﯾﺒﻘﻲ ‪ pacman‬اﻟﻨﻀﺎم ﻣﺤﺪﺛ ًﺎ و ذﻟﻚ ﺑﻤﺰاﻣﻨﺔ ﻻﺋﺤﺔ اﻟﺤﺰم ﻣﻊ اﻟﺨﺎدم اﻟﺮﺋﯿﺴﻲ ‪ ,‬هﺬا اﻟﻨﻤﻮدج ﺧﺎدم‪/‬ﻋﻤﯿﻞ ﯾﺴﻤﺢ ﻟﻚ اﯾﻀ ًﺎ ﺑـ ﺗﺤﻤﯿﻞ‪/‬ﺗﺜﺒﯿﺖ اﻟﺤﺰم ﺑﺄﻣﺮ ﺑﺴﯿﻂ ‪ ,‬ﻣﻊ‬
‫إﺳﺘﮑﻤﺎل ﺟﻤﯿﻊ اﻹﻋﺘﻤﺎدﯾﺎت اﻟﻤﻄﻠﻮﺑﺔ‪.‬‬
‫‪Search‬‬
‫‪Go‬‬ ‫‪Search‬‬ ‫ﮐﺘﺐ ‪ pacman‬ﺑﻠﻐﺔ اﻟﺒﺮﻣﺠﺔ ‪ C‬وﯾﺴﺘﻌﻤﻞ ﺣﺰم ذات ﺗﻨﺴﯿﻖ ‪. pkg.tar.xz.‬‬

‫‪interaction‬‬ ‫ﺗﻠﻤﯿﺤﺔ ‪ :‬اﻟﺤﺰﻣﺔ اﻟﺮﺳﻤﯿﺔ ﻣﻦ ‪ pacman‬ﺗﻀﻢ أﯾﻀ ًﺎ ﻣﺠﻤﻮﻋﺔ أدوات ﻣﺴﺎﻋﺪة ‪ ,‬ﻣﻦ ﻗﺒﯿﻞ ‪ makepkg, pactree, vercmp‬واﻟﻤﺰﯾﺪ ‪ .‬ﻧﻔﺬ‬
‫‪Help‬‬ ‫ﻟﻠﺤﺼﻮل ﻋﻠﯽ اﻻﺋﺤﺔ ﮐﺎﻣﻠﺔ‪.‬‬ ‫‪pacman -Ql pacman | grep bin‬‬
‫‪Contributing‬‬
‫‪Recent changes‬‬
‫]‪Contents [hide‬‬
‫‪Recent talks‬‬
‫‪New pages‬‬ ‫‪ 1‬اﻟﺘﻬﯿﺌﺔ‬
‫‪Reports‬‬ ‫‪ 1.1‬اﻟﺨﯿﺎرات اﻟﻌﺎﻣﺔ‬
‫‪Requests‬‬ ‫‪ 1.1.1‬إﺳﺘﺜﻨﺎء ﺣﺰﻣﺔ ﻣﻦ اﻟﺘﺤﺪﯾﺚ‬
‫‪ 1.1.2‬إﺳﺘﺜﻨﺎء ﻣﺠﻤﻮﻋﺔ ﺣﺰﻣﯿﺔ ﻣﻦ اﻟﺘﺤﺪﯾﺚ‬
‫‪tools‬‬
‫‪ 1.1.3‬إﺳﺘﺜﻨﺎء ﻣﻠﻔﺎت ﻣﻦ أن ﺗﺜﺒﺖ ﻋﻠﯽ اﻟﻨﻀﺎم‬
‫‪What links here‬‬
‫‪ 1.2‬اﻟﻤﺨﺎزن‬
‫‪Related changes‬‬
‫‪Special pages‬‬
‫‪ 1.3‬أﻣﺎن اﻟﺤﺰﻣﺔ‬
‫‪Printable version‬‬ ‫‪ 2‬اﻹﺳﺘﻌﻤﺎل‬
‫‪Permanent link‬‬ ‫‪ 2.1‬ﺗﺜﺒﯿﺖ اﻟﺤﺰم‬
‫‪Page information‬‬ ‫‪ 2.1.1‬ﺗﺜﺒﯿﺖ ﺣﺰﻣﺔ ﻣﺤﺪدة‬

‫‪open in browser PRO version‬‬ ‫‪Are you a developer? Try out the HTML to PDF API‬‬ ‫‪pdfcrowd.com‬‬
‫ ﺗﺜﺒﯿﺖ ﻣﺠﻤﻮﻋﺔ ﺣﺰﻣﯿﺔ‬2.1.2
in other languages
‫ ﺣﺬف اﻟﺤﺰم‬2.2
Česky
‫ ﺗﺤﺪﯾﺚ اﻟﺤﺰم‬2.3
Dansk
Deutsch
Querying package databases 2.4
Ελληνικά ‫ أواﻣﺮ إﺿﺎﻓﯿﺔ‬2.5
English ‫ اﻟﺘﺮﻗﯿﺎت اﻟﺠﺰﺋﯿﺔ ﻏﯿﺮ ﻣﻌﺘﻤﺪة‬2.6
Español Troubleshooting 3
Français !An update to package XYZ broke my system 3.1
Bahasa Indonesia !I know an update to package ABC was released, but pacman says my system is up to date 3.2
Italiano !"I get an error when updating: "file exists in filesystem 3.3
日本語
"I get an error when installing a package: "not found in sync db 3.4
한국어
!Pacman is repeatedly upgrading the same package 3.5
Lietuvių
Nederlands
!Pacman crashes during an upgrade 3.6
Polski !I installed software using "make install"; these files do not belong to any package 3.7
Português ?I need a package with a specific file. How do I know what provides it 3.8
Română ?Pacman is completely broken! How do I reinstall it 3.9
Русский After updating my system, I get a "unable to find root device" error after rebooting and my system will no 3.10
Српски / srpski longer boot
Svenska Signature from "User <email@gmail.com>" is unknown trust, installation failed 3.11
Türkçe
I keep getting 3.12
Українська
I keep getting a "failed to commit transaction (invalid or corrupted package)" error 3.13
中文(中国大陆)​
中文(台灣)​
I get an error every time I use pacman saying 'warning: current locale is invalid; using default "C" 3.14
?locale'. What do I do
?How can I get Pacman to honor my proxy settings 3.15
See also 4

‫اﻟﺘﻬﯿﺌﺔ‬
‫ ﻟﻠﺤﺼﻮل ﻋﻠﯽ‬, ‫ هﺬا اﻟﻤﻠﻒ ﺣﯿﺚ ﯾﻘﻮم اﻟﻤﺴﺘﺨﺪم ﺑﺈﻋﺪاد اﻟﺒﺮﻧﺎﻣﺞ ﻟﻠﯿﺸﺘﻐﻞ ﻋﻠﯽ اﻟﻨﺤﻮ اﻟﻤﻄﻠﻮب‬. etc/pacman.conf/ ‫ ﺗﻘﻊ ﺑﺎﻟﻤﻠﻒ‬pacman ‫إﻋﺪادات‬
.man pacman.conf ‫ﻣﻌﻠﻮﻣﺎت ﺗﻔﺼﯿﻠﯿﺔ ﻋﻦ ﻣﻠﻒ اﻹﻋﺪادات ﯾﻤﮑﻨﻚ اﻹﻃﻼع ﻋﻠﯽ‬
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
‫اﻟﺨﯿﺎرات اﻟﻌﺎﻣﺔ‬
‫اﻹﻓﺘﺮاﺿﻲ ﻟﻤﺰﯾﺪ ﻣﻦ اﻟﻤﻌﻠﻮﻣﺎت ﻋﻦ ﻣﺎ ﯾﻤﮑﻦ اﻟﻘﯿﺎم ﺑﻪ‪.‬‬ ‫‪pacman.conf‬‬ ‫اﻟﺨﯿﺎرات اﻟﻌﺎﻣﺔ ﺳﺘﺠﺪهﺎ ﺑﻘﺴﻢ ]‪ , [options‬إﻗﺮأ ﺻﻔﺤﺔ ‪ man‬أو أﻧﻈﺮ ﻟﻤﻠﻒ‬

‫إﺳﺘﺜﻨﺎء ﺣﺰﻣﺔ ﻣﻦ اﻟﺘﺤﺪﯾﺚ‬


‫ﻹﺳﺘﺜﻨﺎء ﺣﺰﻣﺔ ﻣﻦ اﻟﺘﺤﺪﯾﺚ ‪ ,‬ﺑﺈﻣﮑﺎﻧﻚ ﺗﺤﺪﯾﺪهﺎ ﮐﺎﻟﺘﺎﻟﻲ ‪:‬‬

‫‪IgnorePkg=linux‬‬

‫ﻟﻠﺤﺰم اﻟﻤﺘﻌﺪدة إﺳﺘﻌﻤﻞ ﻣﺴﺎﻓﺔ ﻟﻠﻔﺼﻞ ﺑﯿﻦ أﺳﻤﺎء اﻟﺤﺰم ‪ ,‬أو أﺿﻒ أﺳﻄﺮ ‪ IgnorePkg‬إﺿﺎﻓﯿﺔ‪.‬‬

‫إﺳﺘﺜﻨﺎء ﻣﺠﻤﻮﻋﺔ ﺣﺰﻣﯿﺔ ﻣﻦ اﻟﺘﺤﺪﯾﺚ‬


‫ﮐﻤﺎ ﻓﻲ ﺣﺎﻟﺔ اﻟﺤﺰم ‪ ,‬إﺳﺘﺜﻨﺎء اﻟﻤﺠﻤﻮﻋﺔ ﺑﺄﮐﻤﻠﻬﺎ ﺷﻲء ﻣﻤﮑﻦ ‪:‬‬

‫‪IgnoreGroup=gnome‬‬

‫إﺳﺘﺜﻨﺎء ﻣﻠﻔﺎت ﻣﻦ أن ﺗﺜﺒﺖ ﻋﻠﻰ اﻟﻨﻀﺎم‬


‫‪ .‬ﮐﻤﺜﺎل ‪ ,‬ﻟﻠﺘﺠﺎهﻞ ﺗﺜﺒﯿﺖ وﺣﺪة ‪ systemd‬إﺳﺘﻌﻤﻞ اﻟﺘﺎﻟﻲ ‪:‬‬ ‫‪NoExtract‬‬ ‫ﻟﺘﺨﻄﻲ داﺋﻤﺎ ﺗﺜﺒﯿﺖ دﻻﺋﻞ ﻣﻌﯿﻨﺔ ﯾﺘﻢ ﺑﺈدراﺟﻬﺎ ﺗﺤﺖ ﻗﺎﺋﻤﺔ‬

‫*‪NoExtract=usr/lib/systemd/system/‬‬

‫اﻟﻤﺨﺎزن‬
‫هﺬا اﻟﻘﺴﻢ ﯾﺤﺪد اﻟﻤﺨﺎزن اﻟﺘﻲ ﯾﺘﻢ إﺳﺘﻌﻤﺎﻟﻬﺎ ‪ ,‬ﺣﺴﺐ ﻣﺎ هﻮ ﻣﺸﺎر إﻟﯿﻪ ﻓﻲ ‪ . etc/pacman.conf/‬ﯾﻤﮑﻦ إدراﺟﻬﺎ ﺑﺸﮑﻞ ﻣﺒﺎﺷﺮ هﻨﺎ أو ﺿﻤﻬﺎ ﻣﻦ ﻣﻠﻒ أﺧﺮ‬
‫(‪ ,‬ﻣﻤﺎ ﯾﺠﻌﻞ ﻣﻦ اﻟﻀﺮوري اﻟﺤﻔﺎظ ﻋﻠﯽ ﻻﺋﺤﺔ واﺣﺪة ﻓﻘﻂ‪ .‬اﻧﻈﺮ ﻫﻨﺎ ﻟﻺﻃﻼع ﻋﻠﯽ ﻃﺮﯾﻘﺔ إﻋﺪاد اﻟﻤﺮاﯾﺎ‪.‬‬ ‫‪etc/pacman.d/mirrorlist/‬‬ ‫ﻼ‬
‫)ﻣﺜ ً‬

‫‪/etc/pacman.conf‬‬

‫]‪#[testing‬‬
‫‪#SigLevel = PackageRequired‬‬
‫‪#Include = /etc/pacman.d/mirrorlist‬‬
‫‪open in browser PRO version‬‬ ‫‪Are you a developer? Try out the HTML to PDF API‬‬ ‫‪pdfcrowd.com‬‬
#Include = /etc/pacman.d/mirrorlist

[core]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[extra]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

[community]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,


# enable the multilib repositories as required here.

#[multilib-testing]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

#[multilib]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository. See the pacman manpage for


# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

‫اﻷﺷﺨﺎص اﻟﻤﺴﺘﻌﻤﻠﻮن‬.‫ ﻓﻬﻮ ﻓﻲ ﻃﻮر اﻟﺘﺤﺪﯾﺚ واﻟﺘﻄﻮﯾﺮ ﻣﻤﺎ ﻗﺪ ﯾﺘﺴﺒﺐ ﻓﻲ ﻋﻄﺐ ﺑﻌﺾ اﻟﺤﺰم‬.[testing] ‫ ﯾﺠﺐ ﺗﻮﺧﻲ اﻟﺤﺬر ﻋﻨﺪ إﺳﺘﻌﻤﺎل ﻣﺨﺰن‬:‫ﺗﺤﺬﯾﺮ‬
.‫ ﻟﻠﺘﺰوﯾﺪ ﺑﺎﻟﻤﻌﻠﻮﻣﺎت‬arch-dev-public mailing list ‫ﻟﻠﻤﺨﺎزن اﻟﺘﺠﺮﯾﺒﯿﺔ ﻣﺪﻋﻮن ﻟﻠﺘﺴﺠﯿﻞ ﻓﻲ‬

‫أﻣﺎن اﻟﺤﺰﻣﺔ‬
,‫ اﻹﻋﺪادت اﻹﻓﺘﺮاﺿﯿﺔ‬, ‫ واﻟﺘﻲ ﺗﻀﯿﻒ ﻃﺒﻘﺔ إﺿﺎﻓﯿﺔ ﻣﻦ اﻟﺤﻤﺎﯾﺔ ﻋﻠﯽ اﻟﺤﺰم‬, ‫ ﯾﺪﻋﻢ اﻟﺤﺰم اﻟﻤﻮﻗﻌﺔ‬pacman ‫ ﻣﻦ‬4 ‫اﻹﺻﺪرا‬
‫ ﯾﻤﮑﻦ ﺗﺠﺎوز ذﻟﻚ ﺑﺎﻟﻨﺴﺒﺔ ﻟﮑﻞ ﻣﺴﺘﻮدع‬,‫ ﺗﻔﻌﻞ اﻟﺘﺤﻘﻖ ﻣﻦ اﻟﺘﻮﻗﯿﻊ ﻟﺠﻤﯿﻊ اﻟﺤﺰم ﻋﻠﯽ اﻟﻤﺴﺘﻮى اﻟﻌﺎﻟﻲ‬, SigLevel = Required DatabaseOptional
‫ أﻟﻘﻲ ﻧﻈﺮة ﻋﻠﯽ‬،‫ ﻟﻠﺤﺼﻮل ﻋﻠﯽ اﻟﻤﺰﯾﺪ ﻣﻦ اﻟﺘﻔﺎﺻﯿﻞ ﺣﻮل ﺗﻮﻗﯿﻊ ﺣﺰﻣﺔ واﻟﺘﺤﻘﻖ ﻣﻦ ﺻﺤﺔ اﻟﺘﻮﻗﯿﻊ‬.‫ ﮐﻤﺎ هﻮ ﻣﻮﺿﺢ أﻋﻼﻩ‬SigLevel ‫ﻣﻦ ﺧﻼل أﺳﻄﺮ‬
.pacman-key

open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
‫اﻹﺳﺘﻌﻤﺎل‬
‫ﻣﺎ ﯾﻠﻲ هﻮ ﻣﺠﺮد ﻋﯿﻨﺔ ﺻﻐﯿﺮة ﻣﻦ اﻟﻌﻤﻠﯿﺎت اﻟﺘﻲ ﯾﻤﮑﻦ أن ﯾﻘﻮم ﺑﻬﺎ ‪ .pacman‬ﻟﻠﻤﺰﯾﺪ ﻣﻦ اﻷﻣﺜﻠﺔ ‪ ،‬راﺟﻊ ‪ .man pacman‬ﮐﺘﻘﺪﯾﻢ أﻟﻘﻲ ﻧﻈﺮة ﻋﻠﯽ‬
‫‪.pacman - An Introduction‬‬

‫ﺗﺜﺒﯿﺖ اﻟﺤﺰم‬
‫ﺗﺜﺒﯿﺖ ﺣﺰﻣﺔ ﻣﺤﺪدة‬
‫ﻟﻠﺘﺜﺒﯿﺖ ﺣﺰﻣﺔ أو ﻋﺪة ﺣﺰم )ﺑﻤﺎ ﻓﻲ ذﻟﻚ اﻹﻋﺘﻤﺎدﯾﺎت( ﻧﻔﺬ اﻹﻣﺮ اﻟﺘﺎﻟﻲ ‪:‬‬

‫‪# pacman -S package_name1 package_name2 ...‬‬

‫أﺣﯿﺎﻧ ًﺎ هﻨﺎك إﺻﺪارات ﻣﺨﺘﻠﻔﺔ ﻟﺤﺰﻣﺔ ﻋﻠﯽ ﻣﺨﺎزن ﻣﺨﺘﻠﻔﺔ ‪ ,‬ﻋﻠﯽ ﺳﺒﯿﻞ اﻟﻤﺜﺎل ‪ [extra] ,‬و ]‪ .[testing‬ﻟﻠﺘﺜﺒﯿﺖ اﻹﺻﺪار اﻟﺴﺎﺑﻖ ‪ ,‬ﯾﺠﺐ ذﮐﺮ اﻟﻤﺨﺰن أو ًﻻ ‪:‬‬

‫‪# pacman -S extra/package_name‬‬

‫ﺗﺜﺒﯿﺖ ﻣﺠﻤﻮﻋﺔ ﺣﺰﻣﯿﺔ‬


‫ﺑﻌﺾ اﻟﺤﺰم ﺗﻨﺘﻤﻲ ﻟﻤﺠﻤﻮﻋﺔ واﻟﺘﻲ ﺑﺎﻹﻣﮑﺎن ﺗﺜﺒﯿﺘﻬﺎ ﻓﻲ ﻧﻔﺲ اﻟﻮﻗﺖ ‪ .‬ﻣﺜﺎﻻ ﻧﻔﺬ اﻷﻣﺮ ‪:‬‬

‫‪# pacman -S gnome‬‬

‫ﺳﯿﺘﻢ ﺗﻮﺟﯿﻬﻚ إﻟﯽ اﺧﺘﯿﺎر ﺑﻌﺾ ﺣﺰم اﻟﻤﺠﻤﻮﻋﺔ ‪ gnome‬اﻟﺘﻲ ﺗﺮﻏﺐ ﻓﻲ ﺗﺜﺒﯿﺘﻬﺎ‪.‬اﺣﯿﺎﻧﺎ ﻣﺎ ﺗﺤﺘﻮى إﺣﺪى اﻟﻤﺠﻤﻮﻋﺎت ﻋﻞ ﻋﺪد ﮐﺒﯿﺮ ﻣﻦ اﻟﺤﺰم ‪ ،‬وﯾﻮﺟﺪ اﻟﻘﻠﯿﻞ ﻣﻦ‬
‫اﻟﺤﺰم اﻟﺘﻲ ‪،‬ﺗﺮﯾﺪ ﺗﺜﺒﯿﺘﻬﺎ أو ﻻ ﺗﺮﯾﺪ ﻓﺒﺪﻻ ﻣﻦ إدﺧﺎل ﮐﻞ اﻷرﻗﺎم ﻣﺎ ﻋﺪا ﺗﻠﻚ اﻟﺘﻲ ﻻ ﺗﺮﯾﺪهﺎ ﻣﻦ اﻟﻤﻼﺋﻢ أن ﺗﺤﺪد أو ﺗﺴﺘﺒﻌﺪ اﻟﺤﺰم أو ﻧﻄﺎﻗﺎ ﻣﻦ اﻟﺤﺰم ﺑﺼﯿﻐﺔ اﻷﻣﺮ‬
‫اﻟﺘﺎﻟﻲ‪:‬‬

‫‪Enter a selection (default=all): 1-10 15‬‬

‫واﻟﺬي ﺳﯿﺤﺪد اﻟﺤﺰم ﻣﻦ ‪ 1‬إﻟﯽ ‪ 10‬و ‪ 15‬ﻟﺘﺜﺒﯿﺘﻬﺎ‪ ،‬أو ‪:‬‬

‫‪Enter a selection (default=all): ^5-8 ^2‬‬

‫‪open in browser PRO version‬‬ ‫‪Are you a developer? Try out the HTML to PDF API‬‬ ‫‪pdfcrowd.com‬‬
‫وذﻟﻚ ﺳﯿﺤﺪد ﺟﻤﯿﻊ اﻟﺤﺰم ﻣﺎ ﻋﺪا ﻣﻦ ‪ 5‬إﻟﯽ ‪ 8‬و ‪ 2‬ﻟﺘﺜﺒﯿﺘﻬﺎ‪.‬ﻟﺮؤﯾﺔ اﻟﺤﺰم اﻟﺘﻲ ﺗﻨﺘﻤﻲ ﻟﻠﻤﺠﻤﻮﻋﺔ ‪ gnome‬ﻧﻔﺬ اﻷﻣﺮ اﻟﺘﺎﻟﻲ‪:‬‬

‫‪# pacman -Sg gnome‬‬

‫أﯾﻀﺎ‪ ،‬ﻗﻢ ﺑﺰﯾﺎرة ‪ /https://www.archlinux.org/groups‬ﻟﺮؤﯾﺔ ﻣﺎ هﻲ ﻣﺠﻤﻮﻋﺎت اﻟﺤﺰم اﻟﻤﺘﺎﺣﺔ‪.‬‬

‫ﻣﻼﺣﻈﺔ ‪ :‬إذا ﮐﺎﻧﺖ ﺣﺰﻣﺔ ﻓﻲ اﻟﻘﺎﺋﻤﺔ ﻣﺜﺒﺘﺔ ﺑﺎﻟﻔﻌﻞ ﻋﻠﯽ اﻟﻨﻈﺎم ﻓﺴﯿﻌﺎد ﺗﻨﺼﯿﺒﻬﺎ ﺣﺘﯽ وﻟﻮ ﮐﺎﻧﺖ أﺣﺪث ﻧﺴﺨﺔ ‪ .‬هﺬا اﻟﺴﻠﻮك ﯾﻤﮑﻦ ﺗﺠﺎوزﻩ ﺑﺎﻟﺨﯿﺎر ‪. --needed‬‬

‫ﺗﺤﺬﯾﺮ ‪ :‬ﻋﻨﺪ ﺗﻨﺼﯿﺐ اﻟﺤﺰم ﻻ ﺗﻘﻢ ﺑﻌﻤﻞ ﺗﺤﺪﯾﺚ ﻟﻘﺎﺋﻤﺔ اﻟﺤﺰم ﺑﺪون ﺗﺤﺪﯾﺚ اﻟﻨﻈﺎم ﻣﺜﻼ اﺳﺘﺨﺪم اﻷﻣﺮ‬

‫‪pacman -Sy package_name‬‬

‫وذﻟﻚ ﻗﺪ ﯾﺆدي إﻟﯽ ﻣﺸﮑﻠﺔ ﻓﻲ اﻟﺘﺒﻌﯿﺎت ‪ .‬اﻧﻈﺮ ‪#‬اﻟﺘﺮﻗﯿﺎت اﻟﺠﺰﺋﯿﺔ ﻏﯿﺮ ﻣﻌﺘﻤﺪة و ?‪https://bbs.archlinux.org/viewtopic.php‬‬
‫‪.id=89328‬‬

‫ﺣﺬف اﻟﺤﺰم‬
‫ﻟﺤﺬف ﺣﺰﻣﺔ ﻣﻔﺮدة‪ ،‬ﻣﻊ إﺑﻘﺎء ﺟﻤﯿﻊ ﺗﺒﻌﯿﺎﺗﻬﺎ اﻟﻤﺜﺒﺘﺔ‪:‬‬

‫‪# pacman -R package_name‬‬

‫ﻟﺤﺬف ﺣﺰﻣﺔ وﺟﻤﯿﻊ ﺗﺒﻌﯿﺎﺗﻬﺎ ﻏﯿﺮ اﻟﻤﻄﻠﻮﺑﺔ ﻟﺘﺜﺒﯿﺖ أﯾﺔ ﺣﺰﻣﺔ أﺧﺮى ‪:‬‬

‫‪# pacman -Rs package_name‬‬

‫ﺗﺤﺬﯾﺮ‪ :‬هﺬﻩ اﻟﻌﻤﻠﯿﺔ ﺗﮑﺮارﯾﺔ وﯾﺠﺐ اﺳﺘﺨﺪاﻣﻬﺎ ﺑﺤﺮص ﺑﺎﻟﻎ ﺣﯿﺚ إﻧﻬﺎ ﻗﺪ ﺗﺤﺬف اﻟﻌﺪﯾﺪ ﻣﻦ اﻟﺤﺰم اﻟﻤﺤﺘﻤﻞ اﻻﺣﺘﯿﺎج إﻟﯿﻬﺎ‪ .‬ﻣﻦ اﻟﻤﺤﺘﻤﻞ‬

‫‪# pacman -Rsc package_name‬‬

‫ﻟﺤﺬف ﺣﺰﻣﺔ ﻣﻄﻠﻮﺑﺔ ﻟﺤﺰﻣﺔ أﺧﺮى دون ﺣﺬف ﻟﻠﺤﺰﻣﺔ اﻟﺘﺎﺑﻌﺔ‪:‬‬

‫‪open in browser PRO version‬‬ ‫‪Are you a developer? Try out the HTML to PDF API‬‬ ‫‪pdfcrowd.com‬‬
‫‪# pacman -Rdd package_name‬‬

‫ﯾﻘﻮم ﺑﮑﻤﺎن ﺑﺤﻔﻆ ﻣﻠﻔﺎت اﻹﻋﺪاد اﻟﻤﻬﻤﺔ ﻋﻨﺪ ﺣﺬف ﺗﻄﺒﯿﻘﺎت ﻣﻌﯿﻨﺔ وﯾﻘﻮم إﻋﻄﺎﺋﻬﺎﺗﺴﻤﯿﺔ ﻣﺬﯾﻠﺔ ﺑﺎﻻﻣﺘﺪاد ‪. pacsave.‬ﻟﺘﺠﻨﺐ إﻧﺸﺎء ﻧﺴﺨﺔ اﺣﺘﯿﺎﻃﯿﺔ ﻟﻬﺬﻩ‬
‫اﻟﻤﻠﻔﺎت اﺳﺘﺨﺪم اﻟﺨﯿﺎر ‪: n-‬‬

‫‪# pacman -Rn package_name‬‬

‫ﻣﻼﺣﻈﺔ ‪ :‬ﺑﮑﻤﺎن ﻟﻦ ﯾﺤﺬف اﻹﻋﺪادات اﻟﺘﻲ ﺗﻨﺸﺆهﺎ اﻟﺒﺮاﻣﺞ ﺑﻨﻔﺴﻬﺎ ) ﻣﺜﻼ "‪ "dotfiles‬ﻓﻲ ﻣﺠﻠﺪ اﻟﻤﻨﺰل ( ‪.‬‬

‫ﺗﺤﺪﯾﺚ اﻟﺤﺰم‬
‫ﺑﺄﻣﺮ واﺣﺪ ﻓﻘﻂ ‪ pacman‬ﻗﺎدر ﻋﻠﯽ ﺗﺤﺪﯾﺚ ﮐﻞ اﻟﺤﺰم ﺑﺎﻟﻨﻀﺎم ‪ .‬ﻋﻤﻠﯿﺔ ﺗﺴﺘﻐﺮق ﺑﻌﺾ اﻟﻮﻗﺖ ﺣﺴﺐ ﺣﺎﻟﺔ ﺗﺤﺪﯾﺚ اﻟﻨﻀﺎم )‪ .(up-to date‬ﯾﻘﻮم هﺬا اﻷﻣﺮ‬
‫ﺑﻤﺰاﻣﻨﺔ ﻗﻮاﻋﺪ ﺑﯿﺎﻧﺎت اﻟﻤﺨﺎزن و ﺗﺤﺪﯾﺚ ﺣﺰم اﻟﻨﻀﺎم )ﻣﺎ ﻋﺪا اﻟﺤﺰم 'اﻟﻤﺤﻠﯿﺔ' اﻟﻐﯿﺮ ﻣﺘﻮﻓﺮة ﺑﺎﻟﺨﺎزن(‪:‬‬

‫‪pacman -Syu #‬‬

‫ﺗﺤﺬﯾﺮ‪ :‬ﺑﺪﻻ ﻣﻦ اﻟﺘﺤﺪﯾﺚ اﻟﻤﺒﺎﺷﺮ ﻓﻮر ﺗﻮﻓﺮ اﻟﺘﺤﺪﯾﺜﺎت ‪ ,‬ﻋﻠﯽ اﻟﻤﺴﺘﺨﺪم أن ﯾﻌﻲ وﯾﺘﻌﺮف ﻋﻠﯽ ﻃﺒﯿﻌﺔ ‪ Arch‬و اﻹﺻﺪار اﻟﻤﺘﺪﺣﺮج اﻟﺬي ﺗﻨﻬﺠﻪ ‪ ,‬ﻓﻬﺬا اﻟﺘﺤﺪﯾﺚ‬
‫ﻗﺪ ﺗﮑﻮن ﻟﻪ ﺗﺒﻌﺎت ﻏﯿﺮ ﻣﺘﻮﻗﻌﺔ ‪.‬ﻋﻠﯽ ﺳﺒﯿﻞ اﻟﻤﺜﺎل ‪ ,‬ﻟﯿﺲ ﻣﻦ اﻟﺤﮑﻤﺔ ﺗﺤﺪﯾﺚ اﻟﻨﻀﺎم إذا ﮐﺎن اﻟﺸﺨﺺ ﻋﻠﯽ وﺷﻚ ﺗﻘﺪﯾﻢ ﻋﺮض ﻣﻬﻢ ‪ ,‬ﻓﻤﻦ اﻷﺣﺴﻦ اﻟﺘﺤﺪﯾﺚ ﻓﻲ‬
‫وﻗﺖ اﻟﻔﺮاغ ﺣﺘﯽ ﯾﺴﻬﻞ اﻟﺘﻌﺎﻣﻞ ﻣﻊ أي ﻣﺸﮑﻠﺔ ﻗﺪ ﺗﺤﺪث‪.‬‬

‫ﻣﺪﯾﺮ اﻟﺤﺰم ‪ pacman‬أداة ﻗﻮﯾﺔ ‪ ,‬ﻟﮑﻦ ﻻ ﺗﻨﺘﻈﺮ ﻣﻨﻪ أن ﯾﺘﻌﺎﻣﻞ ﻣﻪ ﺟﻞ اﻟﺤﺎﻻت ‪ ,‬إذا ﮐﺎن اﻷﻣﺮ ﻣﺮﺑﮑ ًﺎ ﺑﺎﻟﻨﺴﺒﺔ ﻟﻚ راﺟﻊ ‪ ,The Arch Way‬ﻋﻠﯽ اﻟﻤﺴﺘﺨﺪم‬
‫أن ﯾﮑﻮن ﯾﻘﻀ ًﺎ وأن ﯾﺘﺤﻤﻞ ﻣﺴﺆوﻟﯿﺔ ﺻﯿﺎﻧﺔ ﻧﻀﺎﻣﻪ اﻟﺨﺎص‪ .‬ﻋﻨﺪ ﻋﻤﻠﯿﺔ اﻟﺘﺤﺪﯾﺚ ﻋﻠﻰ اﻟﻤﺴﺘﺨﺪم أن ﯾﻘﺮأ وﯾﻨﺘﺒﻪ ﻟﻜﻞ اﻟﺮﺳﺎﺋﻞ اﻟﺼﺎدرة ﻣﻦ ‪ pacman‬وأن‬
‫ﯾﺘﺤﻠﻰ ﺑﺤﺲ ﺳﻠﯿﻢ‪ .‬إذا إﺳﺘﻠﺰم ﺗﺤﺪﯾﺚ ﻣﻠﻒ إﻋﺪادت ﻣﻌﺪل ﻟﺤﺰﻣﺔ ذات إﺻﺪار ﺟﺪﯾﺪ ‪ ,‬ﻓﻤﻠﻒ ‪ pacnew.‬ﯾﺘﻢ إﺗﺸﺎؤﻩ ﻟﺘﺠﻨﺐ اﻟﮑﺘﺎﺑﺔ ﻓﻮق اﻹﻋﺪادات اﻟﻤﻌﺪﻟﺔ ﻣﻦ‬
‫ﻃﺮف اﻟﻤﺴﺘﺨﺪم‪ .‬ﺳﯿﻘﻮم ‪ pacman‬ﯾﺘﻨﺒﯿﻪ اﻟﻤﺴﺘﺨﺪم ﻟﺪﻣﺠﻬﻢ‪ ,‬هﺬﻩ اﻟﻤﻠﻔﺎت ﺗﺘﻄﻠﺐ اﻟﺘﺪﺧﻞ اﻟﯿﺪوي ﻣﻦ ﻗﺒﻞ اﻟﻤﺴﺘﺨﺪم ﻣﻦ اﻟﺠﯿﺪ اﻟﺘﻌﻮد ﻋﻠﯽ ﻣﺮاﺟﻌﺘﻬﺎ ﺑﻌﺪ ﮐﻞ‬
‫ﻋﻤﻠﯿﺔ ﺗﺮﻗﯿﺔ أو ﺣﺬف ﻟﻠﺤﺰﻣﺔ‪ .‬ﻟﻠﻤﺰﯾﺪ راﺟﻊ ‪ Pacnew‬و ‪ Pacsave‬ﻣﻠﻔﺎت‪.‬‬

‫‪ :Tip‬ﺗﺬﮐﺮ أن ﻣﺨﺮﺟﺎت ‪ pacman‬ﺗﺴﺠﻞ ﺑﺎﻟﻤﻠﻒ ‪. var/log/pacman.log/‬‬

‫ﻼ ﻣﻦ‬
‫ﻣﻦ اﻟﻤﺤﺒﺐ زﯾﺎرة ‪ Arch Linux home page‬ﻗﺒﻞ اﻟﺘﺤﺪﯾﺚ‪ ,‬ﻟﻠﺘﺤﻘﻖ ﻣﻦ أﺧﺮ اﻷﺧﺒﺎر )أو ﺳﺠﻞ ﻓﻲ ﺧﺪﻣﺔ ‪ ,(Rss‬ﻋﻨﺪﻣﺎ ﯾﺘﻄﻠﺐ اﻟﺘﺤﺪﯾﺚ ﺗﺪﺧ ً‬
‫‪open in browser PRO version‬‬ ‫‪Are you a developer? Try out the HTML to PDF API‬‬ ‫‪pdfcrowd.com‬‬
‫اﻟﻤﺴﺘﺨﺪم ﺧﺎرج ﻋﻦ اﻟﻤﺄﻟﻮف )أﮐﺜﺮ ﻣﻦ ﻣﺎ ﯾﻤﮑﻦ ﺗﺪﺑﺮﻩ ﺑﺈﺗﺒﺎع إرﺷﺎدات ‪ ,(pacmac‬ﻓﺴﻮف ﯾﺘﻢ إﻧﺰال ﺧﺒﺮ ﺣﻮل اﻟﻤﻮﺿﻮع‪.‬‬

‫إذا إﺳﺘﻌﺼﯽ ﺣﻞ اﻟﻤﺸﮑﻞ اﻟﻤﺼﺎدف ﺑﺈﺗﺒﺎع هﺬﻩ اﻟﺘﻌﻠﯿﻤﺎت ‪ ,‬ﺗﺎﻧﺪ ﻣﻦ اﻟﺒﺤﺚ ﺑﺎﻟﻤﻨﺘﺪى ‪ ,‬ﻓﻤﻦ اﻟﺸﺎﺋﻊ أن ﯾﺼﺎدف آﺧﺮون ﻧﻔﺲ اﻟﻤﺸﮑﻞ وأن ﯾﮑﻮن ﻗﺪ ﻓﺘﺤﻮا ﺑﺎﻟﻔﻌﻞ‬
‫ﻣﻮﺿﻮع ﺣﻮﻟﻪ وﺣﻮل ﻃﺮﯾﻘﺔ ﺣﻠﻪ ‪.‬‬

‫‪Querying package databases‬‬


‫‪ ;flag‬أﻧﻈﺮ‪:‬‬ ‫‪Q-‬‬ ‫ﯾﺴﺘﻌﻠﻢ ‪ pacman‬ﻣﻦ ﻗﺎﻋﺪة ﺑﯿﺎﻧﺎت اﻟﺤﺰم اﻟﻤﺤﻠﯿﺔ ﺑﺈﺳﺘﻌﻤﺎل‬

‫‪pacman -Q --help $‬‬

‫‪ ;flag‬أﻧﻈﺮ‪:‬‬ ‫‪S-‬‬ ‫و اﻹﺳﺘﻌﻼم ﻣﻦ ﻗﻮاﻋﺪ ﺑﯿﺎﻧﺎت اﻟﻤﺰاﻣﻨﺔ‬

‫‪pacman -S --help $‬‬

‫ﺑﻤﻘﺪور ‪ pacman‬اﻟﺒﺤﺚ ﻋﻦ اﻟﺤﺰم ﺑﻘﺎﻋﺪة اﻟﺒﯿﺎﻧﺎت ‪ ,‬ﺑﺤﺜ ًﺎ ﻋﻦ اﻹﺳﻢ ووﺻﻒ اﻟﺤﺰﻣﺔ‪:‬‬

‫‪... pacman -Ss string1 string2 $‬‬

‫ﻟﻠﺒﺤﺚ ﻋﻦ اﻟﺤﺰم اﻟﺘﻲ ﺳﺒﻖ ﺗﺜﺒﯿﺘﻬﺎ‪:‬‬

‫‪... pacman -Qs string1 string2 $‬‬

‫ﻟﻌﺮض ﻣﻌﻠﻮﻣﺎت ﺣﻮل ﺣﺰﻣﺔ ﻣﺎ‪:‬‬

‫‪pacman -Si package_name $‬‬

‫ﺑﺎﻟﻨﺴﺒﺔ ﻟﻠﺤﺰم اﻟﻤﺜﺒﺘﺔ ﻣﺤﻠﯿﺎً‪:‬‬

‫‪pacman -Qi package_name $‬‬

‫‪open in browser PRO version‬‬ ‫‪Are you a developer? Try out the HTML to PDF API‬‬ ‫‪pdfcrowd.com‬‬
:‫ ﺳﯿﻈﻬﺮ ﻗﺎﺋﻤﺔ ﺑﺈﺳﻤﺎء ﻣﻠﻔﺎت اﻟﻨﺴﺦ اﻹﺣﺘﯿﺎﻃﯿﺔ وﺣﺎﻟﺔ اﻟﺘﻌﺪﯾﻞ ﺧﺎﺻﺘﻬﺎ‬flags i- ‫ﺗﻤﺮﯾﺮ إﺛﻨﺎن ﻣﻦ‬

pacman -Qii package_name $

:‫ﻟﺴﺮد ﻗﺎﺋﻤﺔ اﻟﻤﻠﻔﺎت اﻟﻤﺜﺒﺔ ﻣﻦ ﻗﺒﻞ اﻟﺤﺰﻣﺔ‬

pacman -Ql package_name $

.pkgfile ‫ إﺳﺘﻌﻤﻞ‬,‫ﺑﺎﻟﻨﺴﺒﺔ ﻟﻠﺤﺰم اﻟﻐﯿﺮ ﻣﺜﺒﺘﺔ‬


:One can also query the database to know which package a file in the file system belongs to

pacman -Qo /path/to/file_name $

:(‫ﻟﺴﺮد اﻟﺤﺰم اﻟﻐﯿﺮ ﻣﻄﻠﻮﺑﺔ ﮐﺈﻋﺘﻤﺎدﯾﺔ )ﯾﺜﯿﻤﺔ‬

pacman -Qdt $

:‫ﻟﺴﺮد ﺷﺠﺮة إﻋﺘﻤﺎدﺑﺎت اﻟﺤﺰﻣﺔ‬

pactree package_name $

:pkgtools ‫ﻣﻦ‬ whoneeds ‫ إﺳﺘﻌﻤﻞ‬, ‫ﻟﺴﺮد ﮐﻞ اﻟﺤﺰم اﻟﺘﻲ ﺗﻌﺘﻤﺪ ﻋﻠﯽ ﺣﺰﻣﺔ ﻣﺘﺒﺜﺔ‬

whoneeds package_name $

‫أواﻣﺮ إﺿﺎﻓﯿﺔ‬
:(‫ﻟﺘﺤﺪﯾﺚ اﻟﻨﻀﺎم وﺗﺜﺒﯿﺖ ﻗﺎﺋﻤﺔ اﻟﺤﺰم )ﺳﻄﺮ واﺣﺪ‬

... pacman -Syu package_name1 package_name2 #

open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
:‫ﺗﺤﻤﯿﻞ اﻟﺤﺰﻣﺔ ﺑﺪون ﺗﻨﺼﯿﺒﻬﺎ‬

pacman -Sw package_name #

:(AUR ‫ ﻣﺼﺪر اﻟﺤﺰﻣﺔ ﻣﻦ‬.ً‫ﺗﺜﺒﯿﺖ ﺣﺰﻣﺔ 'ﻣﺤﻠﯿﺔ' ﻏﯿﺮ ﻣﻮﺟﻮدة ﺑﺎﻟﻤﺨﺰن )ﻣﺜﻼ‬

pacman -U /path/to/package/package_name-version.pkg.tar.xz #

:‫ إﺳﺘﻌﻤﻞ‬,pacman ‫ اﻟﺨﺎص ﺑـ‬cache ‫ ﻹﺑﻘﺎء ﻧﺴﺨﺔ ﻣﻦ اﻟﺤﺰم اﻟﻤﺤﻠﯿﺔ ﻓﻲ‬:‫ﺗﻠﻤﯿﺤﺔ‬

pacman -U file://path/to/package/package_name-version.pkg.tar.xz #

:(pacman ‫ﺗﺜﺒﯿﺖ ﺣﺰﻣﺔ 'ﻋﻦ ﺑﻌﺪ' )ﻟﯿﺲ ﻣﻦ اﻟﻤﺨﺰن اﻟﻤﺼﺮح ﺑﻪ ﻓﻲ ﻣﻠﻒ إﻋﺎدات‬

pacman -U http://www.example.com/repo/example.pkg.tar.xz #

:( var/cache/pacman/pkg/ ) ‫ اﻟﺤﺰم ﻣﻦ اﻟﺤﺰم اﻟﻐﯿﺮ ﻣﺜﺒﺘﺔ ﺣﺎﻟﯿ ًﺎ‬cache ‫ﺗﻨﻈﯿﻒ‬

Only do this if certain that the installed packages are stable and that a downgrade will not be :‫ﺗﺤﺬﯾﺮ‬
necessary, since it will remove all of the old versions from the cache folder, leaving behind only the
versions of the packages that are currently installed. Having older versions of packages comes in handy in
.case a future upgrade causes breakage

pacman -Sc #

:Clean the entire package cache

This clears out the entire package cache. Doing this is considered a bad practice; it prevents the :‫ﺗﺤﺬﯾﺮ‬
ability to downgrade something directly from the cache folder. Users will be forced to have to use an
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
.alternative source of deprecated packages such as the Arch Rollback Machine

pacman -Scc #

As an alternative to both the Sc- and Scc- switches, consider using paccache from pacman. This :‫ﺗﻠﻤﯿﺤﺔ‬
.offers more control over what and how many packages are deleted. Run paccache -h for instructions

‫اﻟﺘﺮﻗﯿﺎت اﻟﺠﺰﺋﯿﺔ ﻏﯿﺮ ﻣﻌﺘﻤﺪة‬


Arch Linux is a rolling release, and new library versions will be pushed to the repositories. The developers
and Trusted Users will rebuild all the packages in the repositories that need to be rebuilt against the
libraries. If the system has locally installed packages (such as AUR packages), users will need to rebuild
.them when their dependencies receive a soname bump
This means that partial upgrades are not supported. Do not use pacman -Sy package or any equivalent such
as pacman -Sy and then pacman -S package . Always upgrade before installing a package -- particularly if
pacman has refreshed the sync repositories. Be very careful when using IgnorePkg and IgnoreGroup for the
.same reason
If a partial upgrade scenario has been created, and binaries are broken because they cannot find the
libraries they are linked against, do not "fix" the problem simply by symlinking. Libraries receive
soname bumps when they are not backwards compatible. A simple pacman -Syu to a properly synced
.mirror will fix the problem as long as pacman is not broken

Troubleshooting

!An update to package XYZ broke my system


Arch Linux is a rolling-release cutting-edge distribution. Package updates are available as soon as they are
deemed stable enough for general use. However, updates sometimes require user intervention: configuration
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
.files may need to be updated, optional dependencies may change, etc
The most important tip to remember is to not "blindly" update Arch systems. Always read the list of
packages to be updated. Note whether "critical" packages are going to be updated (linux, xorg-server, and
so on). If so, it is usually a good idea to check for any news at https://www.archlinux.org/ and scan
.recent forum posts to see if people are experiencing problems as a result of an update
If a package update is expected/known to cause problems, packagers will ensure that pacman displays an
appropriate message when the package is updated. If experiencing trouble after an update, double-check
.( var/log/pacman.log/ ) pacman's output by looking at the log

At this point, only after ensuring there is no information available through pacman, there is no
relative news on https://www.archlinux.org/, and there are no forum posts regarding the update,
.consider seeking help on the forum, over IRC, or downgrading the offending package

I know an update to package ABC was released, but pacman says my system is
!up to date
Pacman mirrors are not synced immediately. It may take over 24 hours before an update is available to you.
The only options are be patient or use another mirror. MirrorStatus can help you identify an up-to-date
.mirror

!"I get an error when updating: "file exists in filesystem


.ASIDE: Taken from https://bbs.archlinux.org/viewtopic.php?id=56373 by Misfit138

error: could not prepare transaction


(error: failed to commit transaction (conflicting files
package: /path/to/file exists in filesystem
.Errors occurred, no packages were upgraded

Why this is happening: pacman has detected a file conflict, and by design, will not overwrite files for you.
.This is a design feature, not a flaw
The problem is usually trivial to solve. A safe way is to first check if another package owns the file (

open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
pacman -Qo /path/to/file ). If the file is owned by another package, file a bug report. If the file is not
owned by another package, rename the file which 'exists in filesystem' and re-issue the update command. If
.all goes well, the file may then be removed
If you had installed a program manually without using pacman or a frontend, you have to remove it and all its
.files and reinstall properly using pacman
Every installed package provides var/lib/pacman/local/$package-$version/files/ file that contains metadata
about this package. If this file gets corrupted - is empty or missing - it results in "file exists in filesystem"
errors when trying to update the package. Such an error usually concerns only one package and instead of
manually renaming and later removing all the files that belong to the package in question, you can run
. pacman -S --force $package to force pacman to overwrite these files

. pacman -Syu --force Do not run

"I get an error when installing a package: "not found in sync db


Firstly, ensure the package actually exists (and watch out for typos!). If certain the package exists, your
package list may be out-of-date or your repositories may be incorrectly configured. Try running pacman -Syy
.to force a refresh of all package lists

!Pacman is repeatedly upgrading the same package


This is due to duplicate entries in /var/lib/pacman/local/ , such as two linux instances. pacman -Qi

.outputs the correct version, but pacman -Qu recognizes the old version and therefore will attempt to upgrade

. /var/lib/pacman/local/ Solution: delete the offending entry in

Pacman version 3.4 should display an error in case of duplicate entries, which should make this :‫ﻣﻼﺣﻈﺔ‬
.note obsolete

!Pacman crashes during an upgrade


In the case that pacman crashes with a "database write" error whilst removing packages, and reinstalling or
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
:upgrading packages fails
.Boot using the Arch install media .1
.Mount your root filesystem .2
. pacman -Syy Update the pacman database via .3
. pacman -r /path/to/root -S package Reinstall the broken package via .4

I installed software using "make install"; these files do not belong to any
!package
If receiving a "conflicting files" error, note that pacman will overwrite manually-installed software if supplied
with the force-- switch ( pacman -S --force ). See Pacman tips#Identify files not owned by any
.package for a script that searches the file system for disowned files

.Take care when using the force-- switch because it can cause major problems if used improperly :‫ﺗﺤﺬﯾﺮ‬

?I need a package with a specific file. How do I know what provides it


.Install pkgfile which uses a separate database with all files and their associated packages

?Pacman is completely broken! How do I reinstall it


In the case that pacman is broken beyond repair, manually download the necessary packages (openssl,
libarchive, and pacman) and extract them to root. The pacman binary will be restored along with its default
configuration file. Afterwards, reinstall these packages with pacman to maintain package database integrity.
Additional information and an example (outdated) script that automates the process is available in this forum
.post

After updating my system, I get a "unable to find root device" error after
rebooting and my system will no longer boot
Most likely your initramfs got broken during a kernel update (improper use of pacman's force-- option can
:be a cause). You have two options
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
.Try the Fallback entry .1

Tip: In case you removed this entry for whatever reason, you can always press the Tab key when the
bootloader menu shows up (for Syslinux) or e (for GRUB), rename it initramfs-linux-fallback.img

.and press Enter or b (depending on your bootloader) to boot with the new parameters

Once the system starts, run this command (for the stock linux kernel) either from the console or from a
:terminal to rebuild the initramfs image

mkinitcpio -p linux #

:If that does not work, from a 2012 Arch release (CD/DVD or USB stick), run .2

If you do not have a 2012 release or if you only have some other "live" Linux distribution laying :‫ﻣﻼﺣﻈﺔ‬
around, you can chroot using the old fashion way. Obviously, there will be more typing than simply
.running the arch-chroot script

.mount /dev/sdxY /mnt #Your root partition #


.mount /dev/sdxZ /mnt/boot #If you use a separate /boot partition #
arch-chroot /mnt #
pacman -Syu mkinitcpio systemd linux #

Reinstalling the kernel (the linux package) will automatically re-generate the initramfs image with
. mkinitcpio -p linux . There is no need to do this separately

. reboot Afterwards, it is recommended that you run exit , {,umount /mnt/{boot and

If you cannot enter the arch-chroot or chroot environment but need to re-install packages you :‫ﻣﻼﺣﻈﺔ‬
.can use the command pacman -r /mnt -Syu foo bar to use pacman on your root partition

Signature from "User <email@gmail.com>" is unknown trust, installation failed


Follow pacman-key#Resetting all the keys. Or you can try to manually upgrade archlinux-keyring
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Follow pacman-key#Resetting all the keys. Or you can try to manually upgrade archlinux-keyring
. pacman -S archlinux-keyring .package first, i.e

I keep getting

error: PackageName: signature from "User <email@archlinux.org>" is invalid


((error: failed to commit transaction (invalid or corrupted package (PGP signature
.Errors occured, no packages were upgraded

:It happens when the system clock is wrong. Set the time and run

hwclock -w #

.before to try to install/upgrade a package again

I keep getting a "failed to commit transaction (invalid or corrupted package)"


error
Look for part.* files (partially downloaded packages) in var/cache/pacman/pkg/ and remove them (often
.( pacman.conf caused by usage of custom XferCommand in

I get an error every time I use pacman saying 'warning: current locale is invalid;
?using default "C" locale'. What do I do
.As the error message says, your locale is not correctly configured. See Locale

?How can I get Pacman to honor my proxy settings


Make sure that the relevant environment variables ( http_proxy$ , ftp_proxy$ etc.) are set up. If you use
.Pacman with sudo, you need to configure sudo to pass these environment variables to Pacman

See also
Common Applications/Utilities#Package management

open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Categories: Package management (‫اﻟﻌﺮﺑﯿﺔ )اﻟﻌﺮﺑﯿﺔ‬

This page w as last modified on 1 October 2014, at 20:37. Content is available under GNU Free Documentation License 1.3
or later unless otherw ise noted. Privacy policy About ArchWiki Disclaimers

open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com

You might also like