Why does 'pacman' produce purely informational output?

My apologies if this dead horse has already been beaten. A brief search didn't turn up any forum topics that addressed this issue.
Many Unix programs adhere to the dictum that successful execution should produce no output unless something interesting or surprising happened. The canonical example is running 'ls' on an empty directory.
'pacman' doesn't follow this design philosophy even if the '--quiet' switch is given.
# pacman -Syq
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
As I understand it, the rationale is the desire to be able to use programs in a pipe. If the output contains purely informational text, then every program that uses that program's output has first to throw away the informational text.
Of course it's easy enough to quieten 'pacman'
pacman -Sy | sed '/^:: /d'
or even
pacman -Sy | sed '/^:: \|is up to date$/d'
So, I have a two part question: Why does 'pacman' produce purely informational text and why doesn't the '--quiet' switch really quieten 'pacman'?
Thanks for any insight.

I used firefox as an example of the differences between using query and search with and without the '-quiet' switch:
[karol@black ~]$ pacman -Q firefox
firefox 3.6.13-1
[karol@black ~]$ pacman -Qq firefox
firefox
[karol@black ~]$ pacman -Ss firefox
extra/firefox 3.6.13-1 [0,74 MB] [installed]
Standalone web browser from mozilla.org
extra/firefox-i18n 3.6.13-1 [4,47 MB]
Language packs for Firefox
extra/totem-plugin 2.32.0-3 [0,14 MB]
Totem mozilla/firefox plugin
community/arch-firefox-search 0.7-6 [0,00 MB] [installed]
Firefox Arch search engines (AUR, Pkgs, BBS, Wiki, etc.)
community/firefox-adblock-plus 1.3.3-1 [0,30 MB]
plugin for firefox which block ads and banners
community/firefox-noscript 2.0.9.8-1 [0,37 MB]
plugin for firefox which disables script
community/firefox-spell-ru 0.4.3-3 [0,50 MB]
Russian spellchecker dictionary for Firefox
unarch/firebrand 3.6-2 [0,00 MB]
A script to brand Firefox without recompiling.
unarch/swiftfox-athlon64 3.6.8-1 [9,42 MB]
Swiftfox is a prebuilt version of Firefox3, optimized for Athlon64 processors.
unarch/swiftfox-i686 3.6.8-1 [9,43 MB]
Swiftfox is a prebuilt version of Firefox3, optimized for i686 architectures.
unarch/swiftfox-prescott 3.6.8-1 [9,10 MB]
Swiftfox is a prebuilt version of Firefox3, optimized for Core Solo/Duo processors.
archlinuxfr/swiftfox-i686-fr 3.6.13-1 [9,51 MB]
Mozilla Firefox optimized build for OLD AMD and INTEL processors on x86 architecture (French version)
archlinuxfr/swiftweasel-amd-pgo 3.5.6-2 [9,59 MB]
Mozilla Firefox optimized build for AMD processors on x86 architecturei (with xulrunner 1.9.1.7).
archlinuxfr/swiftweasel-amd-pgo-fr 3.5.6-2 [9,60 MB]
Mozilla Firefox optimized build for AMD processors on x86 architecture (French version) (with xulrunner 1.9.1.7).
archlinuxfr/swiftweasel-intel-pgo-fr 3.5.6-1 [3,92 MB]
Mozilla Firefox optimized build for INTEL processors on x86 architecture (French version).
archlinuxfr/wto 1.0.3-3 [0,01 MB]
web tv orange sans firefox et enregistreur en python
cake/firefox 3.6-1 [0,95 MB] [installed: 3.6.13-1]
Mozilla.org Web Browser
cinan/firefox-pgo 3.6.8-2 [9,11 MB]
Mozilla Firefox customizable web browser (XULRunner independent, PGO optimized, 64-bit TraceMonkey)
cinan/mozplugger 1.14.1-1 [0,04 MB]
A Mozilla & Firefox multimedia plugin.
rfad/firefox-pgo 3.0.10-1 [8,09 MB]
Mozilla Firefox. XULRunner independent. And optimized for faster use :)
[karol@black ~]$ pacman -Ssq firefox
firefox
firefox-i18n
totem-plugin
arch-firefox-search
firefox-adblock-plus
firefox-noscript
firefox-spell-ru
firebrand
swiftfox-athlon64
swiftfox-i686
swiftfox-prescott
swiftfox-i686-fr
swiftweasel-amd-pgo
swiftweasel-amd-pgo-fr
swiftweasel-intel-pgo-fr
wto
firefox
firefox-pgo
mozplugger
firefox-pgo
I think this is how the switch is meant to work. I posted a link to a bug/feature request that deals with a similar issue to what you report here.
Maybe info about every repo - even if it's up to date - is printed for the sake of consistency?

Similar Messages

  • IF UPDATES TO APPS THAT CAME WITH OUR MAC ARE FREE, WHY DOES APPLE REQUIRE BILLING INFORMATION TO BE COMPLETED IN THE SCREEN JUST BEFORE ACCESS TO INSTALLING FREE UPDATES???

    IF UPDATES TO APPS THAT CAME WITH OUR MAC ARE FREE, WHY DOES APPLE REQUIRE BILLING INFORMATION TO BE COMPLETED IN THE SCREEN JUST BEFORE ACCESS TO INSTALLING FREE UPDATES???

    It is necessary to confirm your identity as the 'buyer'.  Please do not use all capital letters.  It is not well regarded here and can be tricky to read for some. Thank you.

  • Why does CS6 InDesign Book epub output generate and apply new graf and character style names in CSS?

    I created an InDesign book composed of documents that had had no paragraph or character styles in the palettes until text was copied over from a single overall document. I worked absolutely as clean as I could.
    I synchronized the book to that single overall document several times, including immediately before exporting the book to epub. My export settings disallowed any local formatting. Character styles were restricted to one named "Italic" for which the only format applied was Italic in the Font Style field, and one named "Small Caps" for which NO formatting was included in the character style.
    There was, as far as I can see, no reason for any character or paragraph styles to export to anything but identically-named CSS entries. That is to say, any text with the character style "Italic" applied in the InDesign doc should have output with the same text with a span class entry of "Italic" around it.
    I still ended up with p and span CSS entries with extra numbers appended to them:
    span.Italic {
    font-style:italic;
    font-weight:normal;}
    span.Small-Caps-1 {
    font-variant:normal;}
    span.Italic-1 {
    font-style:italic;
    font-weight:normal;}
    span.Small-Caps-2 {
    font-variant:normal;}
    span.Italic-2 {font-style:italic;
    font-weight:normal;}
    span.Small-Caps-3 {
    font-variant:normal;}
    span.Italic-3 {
    font-style:italic;
    font-weight:normal;}
    and
    p.x-SECTION-BREAK, p.x-SECTION-BREAK-1, p.x-SECTION-BREAK-2, p.x-SECTION-BREAK-3  and so on.
    Why would the InDesign epub output engine choose to generate and apply new spans and paragraph-level styles, which multiply the complexity of editing the CSS directly? How can I prevent InDesign from doing this?

    Perhaps I wasn't clear. When I wrote "an InDesign book composed of documents that had had no paragraph or character styles in the palettes until text was copied over from a single overall document" I meant to emphasize  the part where I CLEARLY said "UNTIL text was copied over." The text I copied over had plenty of paragraph styles. I was trying to point out that each individual document had no PREVIOUSLY EXISTING character or paragraph styles that might have added complexity to the epub output. .
    So, every paragraph in each document had a paragraph style attached, a total of maybe 20 different paragraph styles throughout the book. The only CHARACTER LEVEL styles I cared about exporting were Italic, for text that was set in italic, and Small Caps, for CAPITALIZED text that I wanted to be able to make smaller in the CSS, since I am not allowed to embed fonts and therefore have no other way of creating small caps in the xhtml files inside the epub.
    So, given that I had two character styles applied to various bits of text throughout my InDesign book ("Italic" and "Small Caps"), I would like to know why there are multiple CSS entries generated: Italic, Italic-1, Italic-2, Small Caps, Small Caps-1, Small Caps-2, and so on.
    Ditto paragraph styles. I had a paragraph style called "SECTION BREAK" in each document. Not only did paragraph style "SECTION BREAK" contain identical specs in each document--I know they did because I copied each from one single doc where they were being used identically--but I also synchronized the book repeatedly.  So why would the xhtml docs and the CSS output need p.x-SECTION-BREAK-1, p.x-SECTION-BREAK-2, and p.x-SECTION-BREAK-3?

  • Why does pacman lock the database during downloads?

    Something that's always irked me about pacman is the fact that it locks the package database during the download stages of package installation, before anything has actually been installed/committed. Is there a reason for this, and if not, would a suggestion/patch be acceptable?
    Here's the scenario I'm encountering right now:
    * Downloading large package in background
    * Need to upgrade flash player (YouTube no longer accepts an older version I suppose, and lolcats are a necessity)
    * I cannot do this quick upgrade due to the lock pacman has on the database while downloading said large package
    Last edited by itsbrad212 (2012-03-24 00:36:31)

    krigun wrote:
    Sounds reasonable, but the following scenario may or may not be a problem:
    You have package A B and C installed:
    Run pacman -Syu (huge download, all three packages updated)
    Simultaneously, you execute pacman -R A (basically modify the pacman DB)
    Package A updated (reinstalled) by first process
    Not sure how pacman is built, but it probably locks and reads the DB when started, and then does it's thing without worries. In any case, it does support resuming downloads, so you could just end the long running process, install whatever, and resume.
    I think it's the same with apt-get.
    That's an interesting point, although I'm guessing the package manager could check to make sure that all packages that it wants to update are present on the system right after it locks the db, and if for some (rare) reason that one is missing, skip it.
    hadrons123 wrote:
    What is that large package which you think is that big?
    I think locking is present in all package managers in all distributions and it is  a good Idea, so that someone can't install and uninstall a package at different terminals at the same time, and end up with a messed up package manager .
    Well in this case, it is eclipse (>200 MB), but there are a variety of other large packages in the repositories. What may be small to you may seem massive to those with slower connections.
    How could it become messed up? I'm not proposing the database lock be eliminated, but rather wait until the actual installation process begins before locking it. It's no skin off anybody's ass if someone simply downloads packages simultaneously.

  • Why does iOS ignore proxy information?

    Hi There,
    We try to use our iPhones and iPads (Current iOS version 7.1.2) on a corporate Wi-fi system which in the main works ok. We configure the wi-fi connection manually to use a proxy server to connect to the internet and this appears to work fine for apps and internet browsing through Safari.However, a number of unidentified apps (I'm assuming Facetime, iTunes, App store and others in the core Apple App suite) are trying to go directly to apple registered IP addresses of:
    17.173.254.222-223
    On ports:
    16384-6
    443
    These apps are ignoring the provided proxy information and trying to get to the internet directly out of the default gateway. These are being blocked by our firewall and cause a lot of additional unwanted traffic on the firewall interface. This causes our Syslog to fill up quickly resulting in extra overhead at the firewall and pollution of the logs we use for troubleshooting.
    Is there a way to force these apps to use the proxy information provided within the wi-fi connection settings or somehow turn off this redundant activity that the devices are generating.
    Many thanks
    KJP

    Since this problem is more business related, you might get more results by posting this question also in this forum: iPhone in Business and Education

  • Why does Firefox show different information than IE on a website

    I went to this link and it is not the same on Firefox as it is on IE (Firefox shows Pre-forclosure, IE shows Off Market). What am I doing wrong? http://www.zillow.com/homedetails/2458-Hopewell-Rd-Wentzville-MO-63385/2574631_zpid/

    I see off-market in Firefox. It's likely the steps at [[Websites look wrong or appear differently than they should]] will help you.

  • Why does Photoshop produce images that are from source data Photoshop can't read?

    I am getting this message "This image was generated from source data that Photoshop cannot read.  That data will be discarded."  When I open the image the data that has been discarded consists of the layers that were created in Photoshop.  I don't understand why Photoshop can't read data created in Photoshop.

    Thank you for the info.  I only have one version of Photoshop on my computer.  The one I created the images with won't open them.  However, I did have a version of Lightroom on my computer that I removed today.  It was newer than my version of Photoshop.  I am hoping that without Lightroom on my computer I will not have any more problems. (cross all my fingers)  The images that are corrupted are missing data.  The Metadata is missing and the layers are missing from the files. If the metadata is missing they won't open at all and if the layers are missing they will open up flattened, some of them are corrupted with data and color switched every which way in the image.

  • Some sites have displays that include overlapped printing, making reading impossible. This doesn't happen with Safari. Why does Firefox produce these mis-aligned displays?

    I use Firefox 3.6.12 on an iMac with OS10.6.4.

    no. thats the first thing I thought of. it doesn't jump on mac safari, and you wouldn't need to zoom in on an ipad.
    I say this just in case you went to the site on your ipad or mac.
    do this from your iphone and be sure zoom in and then to scroll around alot. (side to side as you scroll down)
    now it also could be some weird thing that happens when you zoom in. to read the article I have to pinch in enough to scroll sideways as well as scrolling down. I can't read microscopic print.
    it doesn't jump until you attempt to scroll the page around scrolling to the side or to the bottom of the page.
    I know not the touch the top of safari as that does indeed bounce it back to the top. and since this only happens on abc news and nowhere else I am thinking its them somehow.
    my current guess is some ad that makes the page reload or something.

  • Why does Pacman do this?? Won't it mess up my system?

    Hi there -- I'm looking to run an upgrade but when I do, I get this:
    [root@lapzilla ~]# pacman -Su
    :: Replace glut with freeglut from "current"? [Y/n] y
    :: gdm: local (2.8.0.7-5) appears to be newer than repo (extra/2.8.0.7-3)
    :: gnomebaker: local (0.5.1-1) appears to be newer than repo (extra/0.5.0-1)
    :: Above packages will be skipped.  To manually upgrade use 'pacman -S <pkg>'
    :: ttf-bitstream-vera conflicts with xorg. Remove xorg? [Y/n]
    Won't this totally mess up my system??  How do I avoid this>
    Thx
    Norm

    Cub69 wrote:
    Hi there -- I'm looking to run an upgrade but when I do, I get this:
    [root@lapzilla ~]# pacman -Su
    :: Replace glut with freeglut from "current"? [Y/n] y
    :: gdm: local (2.8.0.7-5) appears to be newer than repo (extra/2.8.0.7-3)
    :: gnomebaker: local (0.5.1-1) appears to be newer than repo (extra/0.5.0-1)
    :: Above packages will be skipped.  To manually upgrade use 'pacman -S <pkg>'
    :: ttf-bitstream-vera conflicts with xorg. Remove xorg? [Y/n]
    Won't this totally mess up my system??  How do I avoid this>
    Thx
    Norm
    I would make a good backup first, then go for it.

  • Why does HP produce so many different cartridges?

    Hewlett Packard prooduces what, over 100 different cartridges, all with similar shape and size. Their printers could be designed to work with existig cartridges but it seems like they design a new cartridge for new printers.  Don't they understand the principle of economy of scale?

    The HP SureSupply Site may be a useful resource to you for your research, as is the HP PageYield site.  The latter will allow you to enter a cartridge number and find the printers it is used in, for example the 564 cartridge introduced about 2006 is used in the following printers and more,  including models still offered today:
    » HP Photosmart B8500 Printer series
    » HP Photosmart D5400 Printer series
    » HP Photosmart D7500 Printer series
    » HP Photosmart Plus All-in-One - B209a
    » HP Photosmart Premium Fax All-in-One - C309a
    » HP Photosmart Premium e-All-in-One series - C310
    » HP Photosmart Premium eStation All-in-One series - C510
    » HP Photosmart C6300 All-in-One series
    » HP Photosmart 7520 e-All-in-One
    » HP Photosmart 6520 e-All-in-One
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • HT2966 Why does ical delete information on calendar after eight months?  Why isn't data retained on calendar? (Apart from actually saving or backing up ical?)

    Why does ical automatically delete information on calendar after eight months or so?  Why doesn't data which has been inserted on calendar remain on the relevant dated calendar?  (Apart from actually saving or backing up calendar). 

    How are your settings in iCal preferences set?
    iCal-->Preferences-->Advanced-->Delete events __ days after they have passed.

  • Why does music differ in quality between devices,do ipod classic/iphone/macbook and nano have different power output ratings

    Why does my music sound so differant on seperate devices ?.
    same song differs in quality between ipod classic , nano , macbook and ipad.
    do the devices have power output ratings if so is one more powerful than the other ?.
    same song , same headphones all downloaded from the same source

    Doesn't anybody have any ideas why diagnostics say "no universal serial bus controller found" and yet founds connected device information just fine?
    IPod and iPhone appears in itunes and device manager with no problem, but syncing stops with error everytime.
    Do you think that this would be an issue with: ITunes, Windows 8 or Asus Maximus V Formula motherboard?
    Am I right, that diagnostics should find universal serial bus controller even though there was nothing attach to it?
    Am I alone with this problem?
    I have also iPod 4gb and iPod 8gb, which shows in itunes, but I'm affraid to sync them if those stops same way.

  • Why does not pacman use a db?

    I'm wondeing why pacman stores all information in many diferent files so loading this info takes while everytime you run pacman, instead of using a single file db?
    I've been thinking about for a very long while and the only answer I find is that it allows you to easily modify the db. I don't think this is a good reason for it. I'm tired of avoidable time wasting.

    Directed to dp:
    dp wrote:the short times result, because you have some files already in ram
    try stopping time of a -Ss just after boot of the system ... this is slow!
    kth5 wrote:
    yup, i don't see something wrong with speed either:
    Athlon 2200Xp+ (1.8Ghz)
    real 0m1.149s
    user 0m0.180s
    sys 0m0.322s
    real 0m0.856s
    user 0m0.166s
    sys 0m0.240s
    Pentium 3 (700Mhz)
    real 0m1.921s
    user 0m0.403s
    sys 0m0.782s
    real 0m0.867s
    user 0m0.301s
    sys 0m0.493s
    both machines were running X.org + KDE 3.3.2 at the same time and were rebooted especially to make sure how muchf caching affects this.
    I can't personally test the caching issue right now, because my live server is running fine and I don't need to reboot it right now..
    But I have never had to wait that long even immediately following a boot.
    I understand if you are doing a pacman -Ssy packagename
    but not a regular pacman -Ss packagename
    Isn't the cache persistent over reboots? I thought pacman stored the contents of reponame.db.tar.gz locally, and it was only a process of re-reading those local files.
    Doing a pacman -Ssy WOULD take longer, especially if poor networking conditions were present (bad connection, slow connection, etc), but that should not be blamed on the app.
    But Just be glad you aren't forced to use yum! LOL

  • Why does it take I movie 6 hours to produce thumbnail for a new project

    why does it take I movie 6 hours to produce thumbnail for a new project

    Hi
    Seems very long time.
    When my Mac starts to get into a slow-motion in action eg encoding DVDs or alike - it's nearly always due to that free space on Start-Up (Mac OS) hard disk is to low.
    • I try to never have less than 25Gb free space
    • 10Gb - might work but slows down
    • 5Gb - slow and instable
    • less - incredibly slow, instable and if DVD is produced - it usually doesn't work
    This space can not be utilized on other hard disks - Neither for Mac OS or iMovie or iDVDs temp. files - Has to be stored here. No-where else.
    Yours Bengt W

  • Why does final cut x not recognize the sharp PN- K321 monitor ( European version ) as output video monitor and premiere it? Working with two cinema display and PN- K321 and I can not preview the output video at 4K for DisplayPort, whereas with premie

    Why does final cut x not recognize the sharp PN- K321 monitor ( European version ) as output video monitor, and premiere yes?
    Working with two cinema display and PN- K321 and I can not preview the output video at 4K by DisplayPort, whereas with premiere and after effects I have no problems

    Look, you can build an HD DVD with an SD movie, just as you can build an SD DVD with an HD movie. This is not a bug, it is most likely user error. Apple will not be addressing it.
    Just start over, and ensure you are building an SD DVD by bringing up the inspector for the disc (click on the background in the Graphical tab).
    Make sure SD DVD is selected:
    (If you do the same thing on your ill fated project, you'll see that HD DVD is selected)
    Build your DVD and you'll be fine.
    Patrick
    P.S. You will need to google HD DVD and Blu-Ray if you want to understand the difference between the formats. The reason that DVDSP included HD DVD was that its format was similar to SD DVD's. Blu-Ray is something else entirely.

Maybe you are looking for

  • Slow iTunes start-up

    Hello, I am having some issues with my iTunes. Everything works fine except the start up. When i click the iTunes icon to start it up. It takes anywhere from 4 to 6 minutes, yes MINUTES to start; sometimes more. I have a great computer! I run everyth

  • F110 " Error in creating the payment document; read job log"

    Hi all, when i execute payment in Tcode F110, getting message " Error in creating the payment document; read job log". Log for payment run for payment on 30.07.2009, identification TEST1 Error in the recovery of constants Information re. vendor 10000

  • Failure to start XE database - spfileXE.ora file size mismatch.

    SQL> startup ORA-01078: failure in processing system parameters ORA-01565: error in identifying file 'E:\oraclexe\app\oracle\product\10.2.0\server\dbs/spfileXE.ora' ORA-27046: file size is not a multiple of logical block size OSD-04012: file size mis

  • Caller ID for incoming calls NOT displaying name from contacts (only displays phone #)

    Whenever I receive an incoming call, the caller ID only shows the phone #, even when I have that number matched to a contact.  Since I don't have many phone #'s memorized, I have no clue that it is someone I know.  However, the contact name is displa

  • Mirror from pc to ipad?

    I am looking for an app that allows one of my students to use her ipad as a second monitor. I have tried some already, but I don't want her to have control over the desktop. She would be using it to help her see as her eyesight is very poor.