[pacman-dev] pacman.conf little clean up
1) Why do we have this comment everywhere in the conf file : # Add your preferred servers here, they will be used first In my opinion, all these lines could disappear. It's recommended that you keep all your repositories in sync. That means using the same mirror for all official repo. And since all official repo already have this by default : Include = /etc/pacman.d/mirrorlist Only that file needs to be edited, and this will affect all official repo automatically. Advanced users who know what they are doing might not want to use the same mirror everywhere for specific reasons. But I don't think they need a comment everywhere explaining how to do it. But that comment might rather belong to the mirrorlist file. 2) For similar reasons, I don't think the following comment is needed : # REPOSITORIES # - can be defined here or included from another file I doubt many people use that. pacman.conf currently has only two parts : a few options, and the repositories. I don't think there is a need to split these. And again, people who do it probably know what they are doing. 3) I find pacman.conf more readable with more new lines (especially when read without syntax highlighting), so I added a few of these as well, to better separate the different parts, like the comments and the commented lines. Anyway, all these things are not important at all, and might be stupid ideas. It's just random thoughts that came to my mind after seeing an user messed up again configuring his pacman.conf. --- pacman.conf 2008-01-25 19:34:04.000000000 +0100 +++ pacman.conf.new 2008-01-25 18:03:29.000000000 +0100 @@ -6,19 +6,22 @@ # # GENERAL OPTIONS # + [options] + # The following paths are commented out with their default values listed. # If you wish to use different paths, uncomment and update the paths. + #RootDir = / #DBPath = /var/lib/pacman/ #CacheDir = /var/cache/pacman/pkg/ #LogFile = /var/log/pacman.log + HoldPkg = pacman glibc #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u # # REPOSITORIES -# - can be defined here or included from another file # - pacman will search repositories in the order defined here # - local/custom mirrors can be added here or in separate files # - repositories listed first will take precedence when packages @@ -34,31 +37,28 @@ # # Testing is disabled by default. To enable, uncomment the following -# two lines. You can add preferred servers immediately after the header, -# and they will be used before the default mirrors. +# two lines. + #[testing] #Include = /etc/pacman.d/mirrorlist [core] -# Add your preferred servers here, they will be used first Include = /etc/pacman.d/mirrorlist [extra] -# Add your preferred servers here, they will be used first Include = /etc/pacman.d/mirrorlist [community] -# Add your preferred servers here, they will be used first Include = /etc/pacman.d/mirrorlist # Unstable is disabled by default. To enable, uncomment the following -# two lines. You can add preferred servers immediately after the header, -# and they will be used before the default mirrors. +# two lines. + #[unstable] #Include = /etc/pacman.d/mirrorlist # An example of a custom package repository. See the pacman manpage for # tips on creating your own repositories. + #[custom] #Server = file:///home/custompkgs -
2008/1/27, Xavier <shiningxc@gmail.com>:
1) Why do we have this comment everywhere in the conf file : # Add your preferred servers here, they will be used first
In my opinion, all these lines could disappear. It's recommended that you keep all your repositories in sync. That means using the same mirror for all official repo. And since all official repo already have this by default : Include = /etc/pacman.d/mirrorlist
Makes sense to me. +1
2) For similar reasons, I don't think the following comment is needed : # REPOSITORIES # - can be defined here or included from another file
and +1
3) I find pacman.conf more readable with more new lines (especially when read without syntax highlighting), so I added a few of these as well, to better separate the different parts, like the comments and the commented lines.
and yet another +1 P.S.: yeah, I like cosmethics. :-P -- Roman Kyrylych (Роман Кирилич)
On Jan 27, 2008 4:22 AM, Xavier <shiningxc@gmail.com> wrote:
1) Why do we have this comment everywhere in the conf file : # Add your preferred servers here, they will be used first
In my opinion, all these lines could disappear. It's recommended that you keep all your repositories in sync. That means using the same mirror for all official repo. And since all official repo already have this by default : Include = /etc/pacman.d/mirrorlist
Only that file needs to be edited, and this will affect all official repo automatically. Advanced users who know what they are doing might not want to use the same mirror everywhere for specific reasons. But I don't think they need a comment everywhere explaining how to do it.
But that comment might rather belong to the mirrorlist file.
2) For similar reasons, I don't think the following comment is needed : # REPOSITORIES # - can be defined here or included from another file
I doubt many people use that. pacman.conf currently has only two parts : a few options, and the repositories. I don't think there is a need to split these. And again, people who do it probably know what they are doing.
3) I find pacman.conf more readable with more new lines (especially when read without syntax highlighting), so I added a few of these as well, to better separate the different parts, like the comments and the commented lines.
Anyway, all these things are not important at all, and might be stupid ideas. It's just random thoughts that came to my mind after seeing an user messed up again configuring his pacman.conf.
I don't see too much more cleanup being needed here after the earlier cleanups to be honest. I'll try to respond briefly. Sure there are duplicate "add your mirror here" comments, but those helped me when I first started with Arch in understanding the Server vs. Include directives, so I think they make some sense. I also think the REPOSITORIES section is a much more succinct way of describing the file than the pacman.conf manpage (although this is new with post-2.9.8 release I believe, which could explain why it was definitely necessary before). And finally, I tend to find it more readable with the current number of newlines- I like it to fit on one terminal page if possible, and too many newlines could make the file seem unreasonably line. This is a *default* flie- people can do whatever they want to it. -Dan
Dan McGee wrote:
On Jan 27, 2008 4:22 AM, Xavier<shiningxc@gmail.com> wrote:
1) Why do we have this comment everywhere in the conf file : # Add your preferred servers here, they will be used first
In my opinion, all these lines could disappear. It's recommended that you keep all your repositories in sync. That means using the same mirror for all official repo. And since all official repo already have this by default : Include = /etc/pacman.d/mirrorlist
Only that file needs to be edited, and this will affect all official repo automatically. Advanced users who know what they are doing might not want to use the same mirror everywhere for specific reasons. But I don't think they need a comment everywhere explaining how to do it.
But that comment might rather belong to the mirrorlist file.
2) For similar reasons, I don't think the following comment is needed : # REPOSITORIES # - can be defined here or included from another file
I doubt many people use that. pacman.conf currently has only two parts : a few options, and the repositories. I don't think there is a need to split these. And again, people who do it probably know what they are doing.
3) I find pacman.conf more readable with more new lines (especially when read without syntax highlighting), so I added a few of these as well, to better separate the different parts, like the comments and the commented lines.
Anyway, all these things are not important at all, and might be stupid ideas. It's just random thoughts that came to my mind after seeing an user messed up again configuring his pacman.conf.
I don't see too much more cleanup being needed here after the earlier cleanups to be honest. I'll try to respond briefly. Sure there are duplicate "add your mirror here" comments, but those helped me when I first started with Arch in understanding the Server vs. Include directives, so I think they make some sense.
Ok well, I still feel like they are unnecessary in the majority of cases, but fine.
I also think the REPOSITORIES section is a much more succinct way of describing the file than the pacman.conf manpage (although this is new with post-2.9.8 release I believe, which could explain why it was definitely necessary before).
I was referring to the first line only. # - can be defined here or included from another file but why not.
And finally, I tend to find it more readable with the current number of newlines- I like it to fit on one terminal page if possible, and too many newlines could make the file seem unreasonably line. This is a *default* flie- people can do whatever they want to it.
Well, I was just trying some ideas to reduce further the number of users misconfiguring the file, after seeing someone messed it up again. It might be fine as it is now though.
participants (3)
-
Dan McGee
-
Roman Kyrylych
-
Xavier