Pacman -Rs instead pacman -R by default

What if pacman uses pacman -Rs by default instead of pacman -R?
When you install a program you want, you install all the necessary dependencies to make the program you want works with just a:
# pacman -S "program"
When you uninstall it you should also get rid of those dependencies without noticing because you never wanted to have them but just the program you wanted to install works, something like:
# pacman -R "program" (and it should work like the actual pacman -Rs "program")
I think is much more common to erase a program with all its dependencies than erase just the program and leave its dependencies installed in you computer, so to erase a program leaving its dependencies should be done by an extra option of R, like:
# pacman -Rk "program" (from keep dependencies) for example and it will do the actual pacman -R "program"
Also its more symetrical:
# pacman -S "program" installs everything to have "program" working
# pacman -R "program" erases everything that was installed to have "program" working
An extra idea is that newbies would ask less how to keep their system clean.
What do you think people?

I sincerely don't like this idea. E.g., I use several packages which were installed as dependencies - I don't want pacman to try and remove them by default every time I remove something that needs them.
Ok, but you could always keep them with another option, like pacman -Rk "program" as I gave as example. I understand that you might need them but which action is more commonly used, even for you: uninstall just the program and keep dependencies because you are going to need them or uninstall the program and dependencies?
The current solution is a lot more K.I.S.S. (i.e., the action taken with the least options is the most basic one - this is intuitive to me).
Ok, intuitive for me is to keep my system as it was before I install anything with the least options.
Not intuitive, for me, is to do pacman -Rs anytime I unistall something, why? because I did just a pacman -S to install it
Moreover: I am always against changing something that works well.
Yes, it works well but you can always do things even better, easier, faster, whatever.
And you can make aliases to emulate this behavior if you wish.
No I can't, I don't know how to code yet. And I think this idea is good enough not only for me but could be helpful to the arch community.
Greetings

Similar Messages

  • When I click on a new link, it opens a whole new firefox instead of using my default which is running in the background

    I have firefox as my default browser. Anytime I click on an email or search for something, instead of opening my default browser, firefox loads a new firefox page. It is a blank page just as if I had never had one. It has nothing on it except how you would start out before you set up your tabs and history etc. My default firefox is still there running in the background but I must click on it and manually put in the link I was trying to open.
    Any suggestions.

    Some added toolbar and anti-virus add-ons are known to cause
    Firefox issues. '''Disable All of them.'''
    Start '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in Safe Mode]''' {web Link} by holding down the '''<Shift ''(Mac Options)'' >''' key, and then starting Firefox. Is the problem still there?

  • Pacman looking for pacman.conf in the wrong place?

    When using yaourt, I had been getting an error message to do with pacman.conf not being found. I fixed this by creating my own and saving it in
    /usr/local/etc/pacman.conf
    (it's the only file in /usr/local/etc)
    I then got the error message:
    failed to initialize alpm library (could not find or read directory)
    After some googling and learning about the find command, I found the following files:
    /usr/lib/libalpm.so
    /usr/lib/libalpm.so.8
    /usr/lib/pkgconfig/libalpm.pc
    /usr/lib/libalpm.so.8.0.2
    So I'm guessing that I do have the alpm library, but pacman (or Yaourt?) isn't finding it.
    Further use of 'find' found the following versions of pacman:
    /usr/local/etc/pacman.conf
    /etc/pacman.conf
    Which then lead me to believe that I have the necessary files but they are in the wrong place or there is a config file (or something) that I need to alter.
    Any ideas what I've done wrong and how to correct it?
    Thanks, James

    I've just tried
    pacman -S man-pages
    as a test, and it worked ok.
    So, Bug Wrangler is probably right. Any ideas how I fix it, or is the solution to start again? If I need to start again, is there an easy way to remove yaourt?
    Last edited by james13 (2014-10-05 18:57:00)

  • [SOLVED] error pacman: /var/cache/pacman/pkg exists in filesystem

    Hi guys, yesterday night I tried to update my system and I got the following error which seems weird:
    resolving dependencies...
    looking for conflicting packages...
    Package (1) Old Version New Version Net Change
    core/pacman 4.2.0-5 4.2.0-6 0.00 MiB
    Total Installed Size: 4.22 MiB
    Net Upgrade Size: 0.00 MiB
    :: Proceed with installation? [Y/n] y
    (1/1) checking keys in keyring [##########################################################] 100%
    (1/1) checking package integrity [##########################################################] 100%
    (1/1) loading package files [##########################################################] 100%
    (1/1) checking for file conflicts [##########################################################] 100%
    error: failed to commit transaction (conflicting files)
    pacman: /var/cache/pacman/pkg exists in filesystem
    Errors occurred, no packages were upgraded.
    It seems weird to me because it conflicts to the whole folder and not to any specific package. Any clue, what is going on and how to solve it?
    Last edited by theodore (2015-01-26 19:51:37)

    clfarron4 wrote:
    theodore wrote:
    Allan wrote:Is your /var/cache/pacman/pkg a directory or a symlink?
    yes I have it in a different partition and then I have symilinked it
    I'd have thought it would have been better to set a different directory for the pacman cache, mounting the partition to that through /etc/fstab and using the CacheDir variable in /etc/pacman.conf, but I'll leave that to your judgement.
    If you don't want to do that, then I'll leave someone else to put up a solution (my brain's screaming bind mounts for some unknown reason).
    So, you are saying that I should enable the CacheDir in /etc/pacman.conf and point it to the partition where I have now the pacman cache.

  • Tupac (TUrbo PACman) - a cached pacman implementation. UPDATED 0.5.6.1

    0.5.6.1:
    - call pacman through sudo.
    - implement aur rpc.
    - fix no single aur results bug.
    ** pending: check why it gets messed when you erase a repo. By now you can run:
    rm /var/lib/tupac/*
    0.5.5:
    - Added an option '--aur-updates' that checks the version of installed aur packages. NOTE: it highlights if the version does not match, not if there's an update.
    0.5.4.1:
    - Fixed a bug that prevented out of date results from appearing in aur searches
    - Added settings option called VERBOSITY. If set to 1 it enables the old tupac behavior in which every single package update get listed. (requested on AUR)
    0.5.4:
    - Fixed german bug
    - Fixed bug updating database
    - Fixed bug with proxy
    - Added the possibility to use an alternate command instead of pacman through custom settings. checkout tupac --help
    ***PKGBUILD update: Now it is stored on sourceforge[b]. No more server disappearence anymore.
    [b]Version history:
    0.5.3.2:
    - Reorganized directory structure.
    0.5.2:
    - Fixed bug: added '+' character as a valid caracter for versioning numbers.
    0.5.1.2:
    - Fix wrong version displaying of _NO_REPO_ results.
    0.5.1.1:
    - Fix php bug that prevented fresh cache creations. too much optimization for php.
    0.5.1:
    - Added --console option that starts a shell for pipe interaction
    0.5:
    - Added incremental cache to everything (local and filelist where pending it).
    0.4.1.1:
    - German localization added
    0.4.1:
    - Proxy error message wasn't localized
    - Added independent internal versioning for TUPAC_CACHE (now it won't get updated on every tupac update).
    0.4:
    - Improved cache check speed time via new .lastupdate files pacman creates on each repo.
    - Added multilanguage suport (it uses LANG variable). Current languages es_ES, es_AR (copy of es_ES), en_US, en_EN (copy of en_EN), ca_ES
    - Added gui/cli better wrapping via metalanguage "machine"
    - Added "--lang" option to set the language in command line.
    - Removed some unneeded verbosity
    0.3.5:
    - Now it returns all aur results! (not limited to 200 anymore)
    - Added --safe option to search only for safe packages in aur
    - Added --set-proxy option to setup a proxy. See "tupac --help".
    0.3.4.2:
    - Updated to work with pacman 3.1
    0.3.4:
    - Now yaourt is only used when installing packages from aur... It was a big delay for nothing.
    - You can specify working repos with --repos repo1,repo2,...
    0.3.3:
    - Added an option to change color scheme
    0.3.2:
    - Added incremental cache. Now it is much faster.
    - Since it shows changes in repos when updating cache, tupac with no arguments now updates cache so that you can see what changed.
    0.2.9.1:
    - fix typo errors in child program calling function.
    0.2.9:
    - Support for "alias pacman=tupac"
    - Show in search results what packages of AUR are SAFE.
    - Improved subprocess handling (now control+c actually kills the child process).
    - Slightly improved performance.
    - Fix filename handling when it contains ? or $ (it treats them properly, but it stills shows strange output when one if this files is to be printed).
    - Fix symbolic links recognition when searching for file owner.
    0.2.8
    - Fixed external programs behaivour. Now pacman progress bars and vi behave normally.
    0.2.7
    - Added --orphans option that finds files with no owner in a directory.
    - Fixed symlinks processing.
    0.2.6:
    - Added a message recommending you to run tupac --checkdir as root to get real information.
    0.2.5
    - Removed unnecessary prompts.
    - Added --checkdir functionality:
       * it checks if in the the provided directory any packages misses any file.
       * It is intended to help you recover your system from mistakes/errors.
       * It has a progress indicator.
    0.2.4
    - Fixed the bug that prevented tupac from showing norepo search results when aur search was omitted.
    - Now it checks that contents of /var/lib/pacman are directories, and if not, it omits them.
    - Moved all naming and directories from pajman to tupac.
    0.2.3
    - BUG FIXED: The problem was with finding file owner of packages that weren't part of any repo.
    0.2.2
    - Fixed initial bug with new default php.ini configuration
    I wrote a cached pacman implementation. It is really fast. See the information below.
    I wrote it because i loved yaourt but i didn't like its performance.
    I added the functionality to perform AND searches both in local and AUR repositories. Adding words to the search string actually filters the search. It doesn't add more results or tries to find the exact phrase.
    The cache updates automatically, so there's nothing to care about.
    It is written in php and uses yaourt to perform installations, so it is included as a dependency.
    NOTE: After last update my php got corrupted. If this happens to you, you will have to fix it by editing the file /etc/php/php.ini and changing extension_dir to extension_dir = "/usr/lib/php/20060613/"
    It can be found on AUR.
    tupac --help
    tupac: A cached pacman implementatioin. Version: 0.4
    Usage:
    tupac [word] [word] [word] ... : Search for and install packages that match all [word]
    tupac -Ss [word] [word] [word] ... : Search for packages that match all [word]
    tupac -Qo [file] [file] [file] ... : Search for each [file] owner
    tupac --checkdir [directory] : Check integrity of a directory.
    tupac --orphans [directory] : Find files that are not part of any package
    tupac : Just update cache
    tupac [anything else] : bypass to yaourt
    tupac --set-proxy [host:port|none] : set up a proxy
    Modifiers:
    --safe : Only search for safe packages
    --noaur : Don't search in AUR
    --noprompt : Don't prompt anything
    --color [darkbg|lightbg|nocolor] : Choose color scheme
    --repos repo1,repo2,repo3,... : Set active repositories
    --lang [xx_XX|machine] : Set working language
    tupac vs pacman
    SEARCHING: (aur search omited on tupac)
    [franki@patito php]$ time pacman -Ss kde>/dev/null
    real 0m0.537s
    user 0m0.227s
    sys 0m0.300s
    [franki@patito php]$ time tupac --noaur -Ss kde>/dev/null
    real 0m0.201s
    user 0m0.147s
    sys 0m0.047s
    FIND FILE OWNER:
    this test is not relevant anymore, since pacman became slightly faster (once cached).
    tupac vs yaourt
    SEARCHING: (tupac gives 100 more results from AUR)
    [franki@patito php]$ time yaourt -Ss kde>/dev/null
    real 0m59.746s
    user 0m12.156s
    sys 0m41.927s
    [franki@patito php]$ time tupac -Ss kde>/dev/null
    real 0m3.182s
    user 0m0.470s
    sys 0m0.057s
    improved search
    EXAMPLE: looking for "3d game"
    yaourt -Ss 3d game -> 4 results (it only includes packages that match exactly '3d game')
    pacman -Ss 3d game -> 109 results (it includes all packages that include any of both words)
    tupac -Ss 3d game -> 33 results (all packages contain the word 3d AND the word game)
    REGENERATION CACHE:
    [franki@patito php]$ time tupac -Ss gaupol
    ==> Generating PAJMAN_CACHE
    1 aur/gaupol 0.12.1-1 - This is the installed version
    An editor for text-based subtitles
    real 0m1.878s
    user 0m0.893s
    sys 0m0.290s
    [franki@patito php]$ time tupac -Qo /opt/kde/bin/startkde
    ==> Reusing existing PAJMAN_CACHE
    ==> Creating file list (it doesn't exist)
    /opt/kde/bin/startkde is owned by kdemod-kdebase 3.5.7-20
    real 0m1.727s
    user 0m1.323s
    sys 0m0.327s
    I hope you like it
    PS: I am open to any comments/issues/improvements you may have/suggest.
    Last edited by Pajaro (2009-08-08 23:23:54)

    UPDATED 0.2.4. AUR UPDATED
    - Fixed the bug that prevented tupac from showing norepo search results when aur search was omitted.
    - Now it checks that contents of /var/lib/pacman are directories, and if not, it omits them.
    - Moved all naming and directories from pajman to tupac.
    ATENTION: - If you plan to erase /var/lib/pajman (with J of paJaro) be careful. It is very similar to the most important directory in arch. This was another reason to move naming. Never erase it if you are drunk, sleepy, stressed or under any circumstance that may reduce your concentration..

  • Pacman -Syu or/pacman --cachedir -Syuw

    Normal pacman activity is performed with pacman -Syu, synched to pacman db and upgrades occur based on the synch with the db.
    If, as in my case, I utilize a cachedir to permit installs from the cache instead of downloading and then installing.  Thus the packages are loaded into cachedir with the  ...w ...option. 
    The packages are installed with pacman -Ud from the mounted cachedir in an array folder.
    My query involves how to utilize pacman to upgrade the cachedir packages.  Normal downloads are measured against the pacman db for the whole system.
    Can an alternate db be established which does not interfere with the normal ..pacman -Syy.. which will only respond to a cachedir request?
    Perhaps ....pacman --cachedir /mnt/md/cache2/array -Syy?
    Will this upset the pacman system?
    Or is it just a pipe dream?!~!!

    Generated an alternate pacman db using the ... -b  ...option.
    I find it to contain the db packages for the system.
    However, the purpose for the alternate was to compare the db with the "local" repo stored in a raid0 array.
      Thus in the directory ...pacman db.... I should find an alternate "local" directory and a "sync" directory.  The "sync" directory exists but no alternate "local" directory.
    Maybe a symlink to my repo is required to enable maintaining it separately from the normal pacman activity.
    How the "local" is setup in normal pacman activity is an item I am not aware of.

  • How to restore Appleworks 6 instead of ExCel as default to read .xls?

    I just loaded Appleworks 6 software from an old eMac applications disk onto my new MacBook because I don't want to buy iWork '08. Appleworks 6 works fine in general on my MacBook, but when I try to open Windows spreadsheets sent to me from a colleague, Appleworks with MacLinkPlus is no longer the default program as it had been on my eMac. Instead, ExCel for Mac now wants to open them by default, but since I refuse to buy iWorks of which ExCel is a part, they don't open. I can still read the spreadsheets in Appleworks 6 by choosing "Open With" from the drop down "File" menu in the Finder, but this is now an extra step. How can I restore Appleworks & MacLinkPlus as the default program to open these spreadsheets and not have go through this extra step?

    HI Spokesman,
    Welcome to Apple Discussions and the AppleWorks forum.
    You wrote: "(S)ince I refuse to buy iWorks of which ExCel is a part, they don't open."
    Microsoft Excel is one of the applications in the MS Office suite, and not a part of iWork (no 's'), made by Apple. The spreadsheet application Numbers was added to the iWork suite with iWork '08.
    To your issue:
    Go to the Finder and locate an Excel file with the file extension .xls). Click on the file (once), then press command-I to Get info.
    In the Get info window, look to the Open with...section (If necessary, click the disclosure triangle to expand the section).
    Use the pull down menu to change the application name from Microsoft Excel to AppleWorks 6. If AW 6 is not in the listed choices, select Other..., navigate to and open the AppleWorks 6 folder, select AppleWorks 6, then click Select (or OK).
    Click the Change all button to apply the change to all files with the .xls extension.
    Close the Get info window.
    Regards,
    Barry

  • [solved] pacman broken after "pacman -Syyu" excluding pacman

    Hi forums,
    I use arch x86_64, yaourt and the testing and multilib repositories.
    A full system upgrade doing "yaourt -Syyu" didn't work, because pacman had an unfulfilled dependancy which I don't recall, but it was about a normal and a multilib version: I probably have the multilib version of a library installed, which has not been updated to the version required by pacman yet.
    So I thought it would be perfectly fine to exclude pacman from this system upgrade by choosing "manually" from the options given by "yaourt -Syyu" and commented pacman.
    The upgrade then went fine except for the two final lines:
    package-query: error while loading shared libraries: libarchive.so.2: cannot open shared object file: No such file or directory
    testdb: error while loading shared libraries: libarchive.so.2: cannot open shared object file: No such file or directory
    Now everytime I try to use pacman, I get this error:
    pacman: error while loading shared libraries: libarchive.so.2: cannot open shared object file: No such file or directory
    Do you know how to solve this?
    Thanks in advance
    xiliyi
    Last edited by xiliyi (2012-01-05 09:49:23)

    ngoonee wrote:Actually (even without cower), makepkg will tell you what dependencies are missing when you try and compile an AUR package. In fact, -s will install them for you (unless they're from the AUR, in which case you have to download/makepkg that package first).
    Actually, I was more concerned about updates for packages from AUR. yaourt would handle AUR packages as if they were in a repository, and update them, solving dependency problems.
    Now what I fear is, that if some regular library gets an update, it may not updated on my system in the first place, because pacman only sees that the older version is needed for the AUR software, but is not capable of updating the AUR package (which works with the new library version) automatically. So updates will break some software unless I remove it first and install the latest version manually.

  • Windows explorer is not displaying thumbnails ( as it was earlier) instead it is showing default program icon

    Hi have been reading the blog for two hours now and I am no closer to a "fix" for this for  our network users. All users on the SOE build now cannot view  or preview image files in windows explorer it is showing just the default icon for
    all images files in a folder in Windows Explorer. Is ther a permanent fix to this problem that we can add to out SOE build or to the a windows update that Mircosoft has released?

    Hi,
    Here're two settings we need to check:
    Control Panel\All Control Panel Items\Folder Options, under "View" tab, untick "Always show icons, never thumbnails "
    Control Panel\All Control Panel Items\System, in the left panel, click "Advanced System Settings", then under "Performance" tab, click "Settings", under "Visual Effects" tab\Custom, find "Show thumbnails instead of icons", tick it.
    Yolanda Zhu
    TechNet Community Support

  • IBM FileNet instead of UCM as default content repository for WebCenter

    Hi,
    Appreciate if anyone can clarify the following queries:
    Is it possible to replace UCM with IBM FileNet as the default (primary) content repository of Oracle WebCenter?
    Is JSR 227 adapter available for FileNet to connect it to WebCenter (as Secondary, NOT as primary content repository)?
    regards
    Rafique

    useful links:
    UCM replacement with IBM File net
    Using IBM FileNet instead of UCM
    From the installation document:
    The Documents service provides content management and storage capabilities for WebCenter applications. To use the Documents service, you must have a content repository > at the back end that contains the documents you want to manage. Oracle WebCenter supports content integration with the following external repositories:
    Oracle Content Server
    Oracle Portal 11g
    Microsoft Office SharePoint Server (MOSS) 2007 Service Pack 2
    Microsoft Windows SharePoint Services (WSS) version 3 Service Pack 2I know that the marketing materials show a Documentum adaptor, but I don't believe that's been created yet. I believe that it's a legacy BEA adaptor that hasn't been officially released for WC yet.
    Thanks,
    -ryan

  • Connect Bluetooth as Headphones instead of Headset by Default?

    Does anyone know of a way to force Leopard to connect my bluetooth headphones as headphones instead of a headset by default? I have a pair of Sony DR-BT22 bluetooth headphones and Leopard picks up headphones and headset services from them. When I turn them on, Leopard asks if I want to use them, but it defaults to using them as a headset which doesn't support stereo sound. Is there a way to force it to use them as headphones by default? Now i have to disconnect from them an reconnect via the bluetooth menu.

    I'm experiencing the same problem with my jbl bluetooth stereo headphones since upgrading to snow leopard or should i say DOWNGRADING. They worked just fine prior to the download. There is obviously a problem with bluetooth in snow leopard and i wonder how apple could have let this error slip through. Does anyone know if they will fix this or are we left with crappy mono sound and a pair of useless headphones. Personally I'm astounded that a company that prides itself on attention to detail and reliability missed this.

  • Creating a button for count hits instead of using the default

    Can any one provide me with the code of calculating the total no of records displayed in a forms instead of using the COUNT HITS default functionality provided by oracle in the menu bar

    Hi,
    You can do a count_query on the block for which you want to get the no. of records and then use a get_block_property('<your_block>',query_hits) to get the value.
    For ex.
    go_block('my_block');
    do_key('COUNT_QUERY');
    message(get_block_property('my_block',query_hits));-Arun

  • [SOLVED] What does "pacman -Syuu" and "pacman -Syy" do?

    I have read in the MATE install page there are these two commands:
    pacman -Syuu
    pacman -Syy
    But what do these mean? Filter old version packages two times or something?
    Last edited by giwrg98 (2012-05-06 12:23:26)

    Trilby wrote:man pacman will tell you what those do.  The wiki says exactly why that needs to be done.  It doesn't suggest running BOTH of those in sequence though - they are under different headings for different purposes.
    Opps! I had read it but didn't check the last sentence of the -y option
    Thanks!

  • Why does Firefox select the last used printer instead of the system default printer on startup?

    In the course of using Firefox I selected my color printer to print in color then closed Firefox. When I reopened Firefox later on and sent something to the printer I had assumed it picked up the system default printer, a monochrome laserjet. It picked up the color printer instead. When I restart my other apps they automatically pick up the default printer. Why not Firefox?

    Some web pages will pop up the print dialog automatically. In particular, pages that websites have specially formatted for printing may do this.
    Are you restoring tabs that you previously opened, or starting up with your home page(s)? I suspect that one of them is generating the dialog. You could check by going to each one and reloading the page to see whether it is from that page.

  • When I open a new tab is doesn't open to my set homepage as it would if opening firefox from start. It instead opens to a "default" page with pogo powered by yahoo, I want to change to google. How do I do this?

    Opening firefox from begining, I have been able to set it to always open to google as it was in my old firefox default settings. If I remember correctly when you opened a tab, it would automatically open to the homepage. I'm not expierencing this with the new version. It is automatically going to the default page rather than the set homepage. (I just have learned to prefer the google search over the yahoo search over the years and am resistant to changing over, sorry)

    A new tab opens by default as a blank tab (about:blank).<br />
    If that isn't the case then an extension has changed that behavior.
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    You can look at one of these extensions:
    * NewTabURL : https://addons.mozilla.org/firefox/addon/newtaburl/
    * New Tab Homepage : https://addons.mozilla.org/firefox/addon/new-tab-homepage/

Maybe you are looking for

  • SQL 2005 Express on WE POSReady 7

    Hi all We have an issue spwaning with a SQL Express 2005 SP3 on POS machines running WE POSReady7  After running smoothly for over 1 year x4 units over the last 2 months have developed an issue where the SQL engine stops running and wont restart - gi

  • How do I work around a JDBC driver "unsupported function"?

    We have a JDBC driver to a Unidata [multivalue, a truely interesting concept] database. It does not support setMaxRows(). The 10.1.3dp3 version throws an exception: Internal Exception: java.sql.SQLException: setMaxRows(int) not supported by eTools JD

  • Changing class-map from all to any

    I need to add a second port to a class-map, so I need to change it from match-all to match-any.  Do I just remove the old virtual server and re-add it?   no class-map match-all vs_test class-map match-any vs_test                                      

  • Ibook not working on macbook pro with Mavericks

    MacBook Pro 15-inch, Mid 2010 Processor  2.53 GHz Intel Core i5 Memory  8 GB 1067 MHz DDR3 updated to Mavericks to use the new ibooks. I bought a book from itunes but everytime I open the book as soon as I click on it, it just disappears. I use hot c

  • Bapi for cuatomer credit memo  f-27

    which bapi i should use in order to create cuatomer credit memo. F-27 and how.