Difference between revisions of "Talk:Pacman/Tips and tricks"

From ArchWiki
Jump to: navigation, search
(Simple vs complex tip: close old discussion)
(Unused packages and cache?: re, close)
 
(116 intermediate revisions by 19 users not shown)
Line 1: Line 1:
== Merge ==
+
== pacman-optimize on SSD ==
  
This is an excellent candidate for merging with [[pacman]].  Just put this one at the bottom of the other, in a special "Tips" section.  It would be good to keep all articles on one subject together in one place for the sake of simplicity and organization; the KISS way. - [[User:KitchM|KitchM]] 11:39, 23 January 2010 (EST)
+
:''[Moved from [[Talk:Improve pacman performance]] -- [[User:Alad|Alad]] ([[User talk:Alad|talk]]) 05:05, 16 October 2015 (UTC)]''
  
== <s>Simple vs complex tip</s> ==
+
pacman-optimize only tries to reduce fragmentation of the files right? If that is the case perhaps we should include a note that this probably won't help much on an SSD. {{Unsigned|18:27, 29 March 2013‎|F4hy}}
  
"Listing changed configuration files", first tip: does it work?
+
== pacman-optimize ==
I find it confusing. The second one do the job. Is there a reason to keep the first?
+
 
:The script works for me, so I kept it and added the one-liner. -- [[User:Karol|Karol]] ([[User talk:Karol|talk]]) 01:04, 14 December 2012 (UTC)
+
:''[Moved from [[Talk:Improve pacman performance]] -- [[User:Alad|Alad]] ([[User talk:Alad|talk]]) 05:05, 16 October 2015 (UTC)]''
::I have inverted them because I guess the shorter is handier so it is worth to be read first [[User:Flu|Flu]] ([[User talk:Flu|talk]]) 20:35, 24 February 2013 (UTC)
+
 
 +
Looks like the [https://aur.archlinux.org/packages/systemd-timer-pacman-optimize-git/ systemd-timer-pacman-optimize-git] package is no longer maintained. [https://lists.archlinux.org/pipermail/pacman-dev/2014-August/019337.html]
 +
 
 +
Should the wiki no longer recommend this package? -- I'm guessing it shouldn't.
 +
 
 +
Also, is pacman-optimize less important than in the past? -- I am genuinely unsure about this.
 +
 
 +
--[[User:Matthew02|Matthew02]] ([[User talk:Matthew02|talk]]) 05:40, 2 March 2015 (UTC)
 +
 
 +
:The maintenance of {{AUR|systemd-timer-pacman-optimize-git}} has nothing to do with that of {{Pkg|pacman}} itself, it is packaged separately and even in the AUR. Anyway, I'd keep the section until ''pacman-optimize'' is removed from {{Pkg|pacman}}.
 +
:The reasons why it is not very important nowadays are improvements in pacman itself (mentioned in the ML post linked above), increased speeds of HDDs and the advent of SSDs.
 +
:-- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 22:18, 2 March 2015 (UTC)
 +
 
 +
== Leading slash ==
 +
 
 +
[[Pacman/Tips_and_tricks#aria2]] doesn't work without leading slash, i.e. {{ic|-d /}} turning file names to {{ic|//var/cache/...}}. The article mentions this, but it doesn't mention why. -- [[User:Alad|Alad]] ([[User talk:Alad|talk]]) 05:28, 16 October 2015 (UTC)
 +
 
 +
:You would have to go [https://wiki.archlinux.org/index.php?title=Improve_pacman_performance&diff=32104&oldid=30674 way] [https://wiki.archlinux.org/index.php?title=Improve_pacman_performance&diff=next&oldid=115292 back] to track this. It seems to have worked without {{ic|-d /}} even in 2006: [https://wiki.archlinux.org/index.php?title=Faster_Pacman_Downloads&oldid=15627], [https://wiki.archlinux.org/index.php?title=Improve_pacman_performance&oldid=17759]. <s>I guess that simply nobody asked the right question...</s> -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 12:30, 16 October 2015 (UTC)
 +
:Oops, it does ''not'' work without {{ic|-d /}}. Then the problem must be on aria's side, which expects a file name for the {{ic|-o}} option, which is then catenated with {{ic|-d}} into the full path. Assuming that {{ic|-d}} defaults to the cwd, {{ic|/var/cache/}} would appear twice in the result. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 12:43, 16 October 2015 (UTC)
 +
 
 +
== pacman cache ==
 +
 
 +
I still think we should warn people not to symlink /var or anything under it. It leaves the whole system unusable because if the cache disappears during a pacman transaction, you're left with missing /usr/lib libraries, and nothing works, including pacman itself. This is a serious enough problem that it can take hours to figure out how to recover. If the wiki had mentioned this problem it would have saved me a lot of time and effort, and I'm not the only one who has run in to this. It is not, however, considered a bug. See https://bugs.archlinux.org/task/50298. [[User:JimRees|JimRees]] ([[User talk:JimRees|talk]]) 23:15, 29 April 2017 (UTC)
 +
 
 +
:This revisions says that: [https://wiki.archlinux.org/index.php?title=Pacman%2FTips_and_tricks&type=revision&diff=475454&oldid=475438]. But to make it more clear: [https://wiki.archlinux.org/index.php?title=Pacman%2FTips_and_tricks&type=revision&diff=475492&oldid=475482]  -- [[User:Rdeckard|Rdeckard]] ([[User_talk:Rdeckard|talk]]) 00:13, 30 April 2017 (UTC)
 +
 
 +
::Actually, I undid my change since I think that first change is more accurate (mentioning {{ic|/var/cache/pacman/pkg}} and ancestors), so I went back to that but explicitly mentioned {{ic|/var}} as an example. -- [[User:Rdeckard|Rdeckard]] ([[User_talk:Rdeckard|talk]]) 01:11, 30 April 2017 (UTC)
 +
 
 +
: Thanks for the background information. I was not aware of the bug report and now clearly understand why you altered the section the way you did. I hope the [https://wiki.archlinux.org/index.php?title=Pacman/Tips_and_tricks&diff=475548&oldid=475495 recent change] is sufficient for you. Since every misbehaving program might leave a system unbootable if it plays a role in the boot process, it should be unnecessary to add this redundant information. However the problem you described is still severe and I hope you agree that the recent edits made to the article do the topic justice. Thanks for clarifying the topic and adding this to the article and sorry for reverting your edits at first. -- [[User:Edh|Edh]] ([[User talk:Edh|talk]]) 21:07, 30 April 2017 (UTC)
 +
 
 +
== <s>Unused packages and cache?</s> ==
 +
 
 +
What is the difference between {{ic|pacman -Rns $(pacman -Qtdq)}} and {{ic|pacman -Sc}}?
 +
[[User:Tonij|Tonij]] ([[User talk:Tonij|talk]]) 03:04, 18 November 2018 (UTC)
 +
 
 +
:First removes packages (installed files) from system. Second removes packages from cache (downloaded archive files from which files are extracted on the system while installing). -- [[User:Svito|Svito]] ([[User talk:Svito|talk]]) 03:25, 18 November 2018 (UTC)
 +
 
 +
::Please read man page {{man|8|pacman}}. It explains all the flags for all pacman options. -- [[User:Svito|Svito]] ([[User talk:Svito|talk]]) 18:08, 18 November 2018 (UTC)

Latest revision as of 18:08, 18 November 2018

pacman-optimize on SSD

[Moved from Talk:Improve pacman performance -- Alad (talk) 05:05, 16 October 2015 (UTC)]

pacman-optimize only tries to reduce fragmentation of the files right? If that is the case perhaps we should include a note that this probably won't help much on an SSD. —This unsigned comment is by F4hy (talk) 18:27, 29 March 2013‎. Please sign your posts with ~~~~!

pacman-optimize

[Moved from Talk:Improve pacman performance -- Alad (talk) 05:05, 16 October 2015 (UTC)]

Looks like the systemd-timer-pacman-optimize-git package is no longer maintained. [1]

Should the wiki no longer recommend this package? -- I'm guessing it shouldn't.

Also, is pacman-optimize less important than in the past? -- I am genuinely unsure about this.

--Matthew02 (talk) 05:40, 2 March 2015 (UTC)

The maintenance of systemd-timer-pacman-optimize-gitAUR has nothing to do with that of pacman itself, it is packaged separately and even in the AUR. Anyway, I'd keep the section until pacman-optimize is removed from pacman.
The reasons why it is not very important nowadays are improvements in pacman itself (mentioned in the ML post linked above), increased speeds of HDDs and the advent of SSDs.
-- Lahwaacz (talk) 22:18, 2 March 2015 (UTC)

Leading slash

Pacman/Tips_and_tricks#aria2 doesn't work without leading slash, i.e. -d / turning file names to //var/cache/.... The article mentions this, but it doesn't mention why. -- Alad (talk) 05:28, 16 October 2015 (UTC)

You would have to go way back to track this. It seems to have worked without -d / even in 2006: [2], [3]. I guess that simply nobody asked the right question... -- Lahwaacz (talk) 12:30, 16 October 2015 (UTC)
Oops, it does not work without -d /. Then the problem must be on aria's side, which expects a file name for the -o option, which is then catenated with -d into the full path. Assuming that -d defaults to the cwd, /var/cache/ would appear twice in the result. -- Lahwaacz (talk) 12:43, 16 October 2015 (UTC)

pacman cache

I still think we should warn people not to symlink /var or anything under it. It leaves the whole system unusable because if the cache disappears during a pacman transaction, you're left with missing /usr/lib libraries, and nothing works, including pacman itself. This is a serious enough problem that it can take hours to figure out how to recover. If the wiki had mentioned this problem it would have saved me a lot of time and effort, and I'm not the only one who has run in to this. It is not, however, considered a bug. See https://bugs.archlinux.org/task/50298. JimRees (talk) 23:15, 29 April 2017 (UTC)

This revisions says that: [4]. But to make it more clear: [5] -- Rdeckard (talk) 00:13, 30 April 2017 (UTC)
Actually, I undid my change since I think that first change is more accurate (mentioning /var/cache/pacman/pkg and ancestors), so I went back to that but explicitly mentioned /var as an example. -- Rdeckard (talk) 01:11, 30 April 2017 (UTC)
Thanks for the background information. I was not aware of the bug report and now clearly understand why you altered the section the way you did. I hope the recent change is sufficient for you. Since every misbehaving program might leave a system unbootable if it plays a role in the boot process, it should be unnecessary to add this redundant information. However the problem you described is still severe and I hope you agree that the recent edits made to the article do the topic justice. Thanks for clarifying the topic and adding this to the article and sorry for reverting your edits at first. -- Edh (talk) 21:07, 30 April 2017 (UTC)

Unused packages and cache?

What is the difference between pacman -Rns $(pacman -Qtdq) and pacman -Sc? Tonij (talk) 03:04, 18 November 2018 (UTC)

First removes packages (installed files) from system. Second removes packages from cache (downloaded archive files from which files are extracted on the system while installing). -- Svito (talk) 03:25, 18 November 2018 (UTC)
Please read man page pacman(8). It explains all the flags for all pacman options. -- Svito (talk) 18:08, 18 November 2018 (UTC)