Pacman feature request "Package purge uninstall"

hello
I have been thinking about this issue for a long long time and have posted it in the forums many time in various ways, but maybe  I can explain the issue properly and experts can chime in.
This is regarding keeping the file system extremely clean what i mean by that is having very high level of control over what files are installed in all the directories except /home.
The purpose is to revert the file system to the way it was when the system was freshly installed.
Case: Samba
If I install samba in my fresh install machine, I will most probably change /etc/samba/smb.conf now what it does is when I decide remove samba even using pacman -Rscn samba I am left with /etc/samba directory which is pure junk, I do understand pacman not wanting to remove files which have been edited but I would like to have a purge option which takes away the files and directories installed by a package, I am not a developer but is there a place where I can ask for this feature?
What will this feature mean?
This will make reverting to fresh install really easy. If after the fresh install i have added lots of packages all I need to do is to remove those packages with the purge option and my install is back to fresh install state, ofcourse i wouldhave to replace all config files with their respective pacnew files.
Is this a valid request? can any expert share their thoughts as to why it can/ cannot be implemented?
Thanks for reading

+1 to this suggestion: I too find myself trawling the system to clean-up any remaining files and directories after an uninstall of any package.
Though I suppose it would be hard to determine what to remove (as mentioned in the bug tracker), we could look at an in between solution. Various uninstall programs on windows systems provide a list of folders and files that where not removed. We could provide a similar list.
In the case of samba, the uninstall sequence could create a notion in the pacman logs along the lines of:
Created during installation but not removed:
*DIR: /etc/samba/
*FILE: /etc/rc.d/samba
Any subsequent action would then be up to the end user. Pacman should also output to terminal if any files / directories remain on the system after an uninstall, along the lines of:
$ pacman -R samba
# (1/1) samba removed
# There are unremoved files / directories, check /var/log/pacman.log for more details!
Last edited by stefanwilkens (2009-04-26 11:42:58)

Similar Messages

  • Pacman feature request, package count of total packages

    Hi to all.
    First of all congratulations for the great distro, I have been using almost 9 months and is wonderful, now I have 4 systems in arch :-D (2 mine, one from a friend and a navigation point at job)
    I has been looking if this has been requested anytime and found nothing
    I would like if pacman will add the package number it is installing refered to the total of packages to be installed. Also it would be nice in size)
    Sometimes when you upgrade the system you have to download and install 300 packages or more, then you see pacman and when he is in the middle of the list downloading you lack the reference of how much this is going to last
    if he could write to the side of each package 23/300 (145,46/1300,24) then you will know that he is downloading the 23 package out of 300 and this will make the 145,46 MB out of 1300,24 MB total to download
    Thanks and sorry if this has already been requested

    Hi Allan
    Allan wrote:I remember a feature request in the bug tracker to put some info about download positions (e.g.  5/10) at the start of the download line.  There were concerns about the output getting too crowded.  It is probably still open...
    Looked again in the bug tracker but unable to find it.
    I already didn't had test the Totaldownload option :-/
    Thanks

  • Pacman feature request: --remark=

    Often, I install a bunch of packages as dependencies of something I'm just trying out. For instance, I might want to compile some random thing just to have a look at it, but it needs a few dependencies first. Since I'm compiling it myself, I'll be installing those explicitly, so I won't catch them with pacman -Rs later. Often these dependencies will have names that I'm not going to remember next week or next month, e.g. "xcmiscproto" or "xtrans".
    So, the problem is that when I'm done playing with whatever the random thing was that needed those, I'll probably miss them in cleanup. Ages later I'll be cleaning up my packages (maybe to free up hard drive space), and I'll look at explicitly installed, not required by anything packages and these will come up. And I'll go... what the heck was that for? Maybe something I compiled from scratch still needs it? But *what*?
    So what'd be handy, is if I could do this when installing such packages:
    pacman -S xcmiscproto xtrans --remark="trying out randomthingXYZ"
    And then later:
    $ pacman -Qi xcmiscproto
    Name : xcmiscproto
    Version : 1.2.1-1
    URL : http://xorg.freedesktop.org/
    Licences : custom
    Groups : None
    Provides : None
    Depends On : None
    Optional Deps : None
    Required By : None
    Conflicts With : None
    Replaces : None
    Installed Size : 76.00 KiB
    Packager : Jan de Groot <[email protected]>
    Architecture : any
    Build Date : Sun 31 Oct 2010 08:23:56 PDT
    Install Date : Mon 13 Feb 2012 13:26:17 PST
    Install Reason : Explicitly installed
    Install Script : No
    Description : X11 XC-Miscellaneous extension wire protocol
    User install remark: trying out randomthingXYZ
    ...And then I can remember, "Oh, that thing; yeah, I ended up not using that and got rid of it months ago; that package can go."
    ~Felix.

    karol wrote:Wouldn't 'pacman -D --asdeps' help here?
    AUR helpers should install in a way that's easily removable.
    asdeps doesn't let you specify as deps of what though, does it? (...Thinks about it for a second...) Ah, but the AUR package takes care of that, doesn't it? i.e. if I were to --asdeps a couple of dependencies, then if/when I do the -Rs on the AUR package, it would catch the dependencies, see that nothing else needed them, and uninstall them... I guess that'd work for AUR stuff, yeah.
    karol wrote:I simply make notes, add links to forum posts etc. in a text file.
    Yeah, I'm usually not that organized   -- but I think I would do it if that functionality were built into pacman
    ~Felix.

  • Feature Request: Offer to uninstall old versions

    Not sure how I ended up like this but using CC I ended up with multiple version of software. Not just 64bit vs. 32bit version. But InDesign CS6, CC, and CC(2014).
    It'd be great to opt-in to just automagically uninstall all other versions if you're cool with only using latest and greatest as I am.

    Nope! Any previous versions of Adobe applications you have installed before downloading CS6 apps from Creative Cloud will continue to function normally alongside the new apps
    EDIT: Here's a screenshot of this question from the Creative Cloud FAQ:

  • Feature request: extra Include directive in default pacman.conf

    Since arch's move to systemd, cluster administration requires less and less use of sed.  In particular, systemctl, timedatectl, /etc/sysctl.d, /etc/modules-load.d, /etc/hostname, /etc/vconsole.conf, etc. make scripting configuration changes both simpler more robust than the old approach of editing multi-purpose files such as /etc/rc.conf.
    An exception to this trend is pacman.conf, which has non-trivial default contents that almost certainly needs to be customized (e.g., to enable multilib and local repositories).  These changes would be much simpler if the default pacman.conf included a line such as:
    Include = /etc/pacman.d/conf/*.conf
    Currently my scripts use sed to insert this line at the end of the [options] section.  (Unfortunately "Include = /etc/pacman.d/*.conf" doesn't work because there's sometimes a gpg.conf file in /etc/pacman.d, but maybe that could be fixed.)
    I don't know if the forum is the right place for feature requests, but I wanted to get people's reactions.  If people think it's a good idea I can add it as a feature request to the bug tracker.
    There are several other pieces of low-hanging fruit where I'd like to see arch decrease the complexity scripting configuration (e.g., an unattended pacman-key --populate and easier customization of mkinitcpio.conf), but I figured I'd start with the simplest and gauge people's reactions.

    aweb wrote:I don't know if the forum is the right place for feature requests, but I wanted to get people's reactions.  If people think it's a good idea I can add it as a feature request to the bug tracker.
    It isn't... best to place the feedback in flyspray so it will be sure to get to the peeps that need to see it.  Welcome to Arch.

  • Feature Request: Custom uninstaller which executes actionscript function on uninstall

    Hi,
    My name is Ronald Kamp and I'm an IT Consultant at iDA MediaFoundry Belgium.
    I would like to request a feature. At the moment I have an application that writes a file to the app-storage of my application, to the user's documents and settings folder and one value to the Encrypted Local Store. On uninstall, I would like to remove all of these files so that all links to the application are removed.
    Would it be possible to add a feature to the AIR SDK that will execute a certain piece of actionscript so that all of these files are removed? Of course, it would be possible to create an installer with InstallAnywhere but then we would lose all of the checks that are performed with the standard AIR installer and uninstaller.
    Thanks in advance.
    Kind regards,
    Ronald Kamp

    Hi Ronald,
    Thank you for the feature request feedback.  I agree, having this functionality would be great.  If you get a chance, I'd like to recommend voting for both of these ideas:
    Custom hook on AIR application uninstall
    Deleting local data store while unistall
    You might also be able to work around this now by creating a native installer and having it sub launch your AIR installer.  More details about this can be found on our redistribution instructions, and you can sign up for the licensing needed on our runtime distribution page.
    Thanks,
    Chris

  • Feature Request: Uninstall App

    I don't see a way to uninstall a recently installed app, does this mean we just drag-n-drop?
    I'm making a feature request for the ability to uninstall, or an explanation of how to uninstall otherwise.
    <Edited by Host>

    f you want to report this issue to Apple's engineering, send a bug report or an enhancement request via its Bug Reporter system. To do this, join the Mac Developer Program—it's free and available for all Mac users and gets you a look at some development software. Since you already have an Apple username/ID, use that. Once a member, go to Apple BugReporter and file your bug report or enhancement request. The nice thing with this procedure is that you get a response and a follow-up number; thus, starting a dialog with engineering.

  • Pacman. Cannot install previously uninstalled package from cache

    Hi all.
    I'm trying to install packages from shared cache to keep few machines in sync. I thought using "pacman -U --needed /path/to/cache/*" would solve it. However when I started testing I've noticed that when one package is removed I cannot install it  back that way. Pacman will just skip that package for some reason. If i use the same command but specify the the package /path/to/package/package_name or even first letter followed by * it will also install it. Why is that?

    Is it possible that the '*' is expanded in some unexpected way?
    I'm not using nfs, I tested it by uninstalling aurphan and running
    $ sudo pacman -U --needed /var/cache/pacman/pkg/*
    loading packages...
    warning: archlinux-keyring-20131027-1 is up to date -- skipping
    warning: aurora-27.0a2+20131114+gc6d8fa8-1 is up to date -- skipping
    warning: avahi-0.6.31-11 is up to date -- skipping
    warning: bison-3.0.1-1 is up to date -- skipping
    <snip>
    warning: xproto-7.0.25-1 is up to date -- skipping
    warning: xvidcore-1.3.2-3 is up to date -- skipping
    resolving dependencies...
    looking for inter-conflicts...
    Packages (1):
    Name New Version Net Change
    aurphan 20130912-1 0.03 MiB
    Total Installed Size: 0.03 MiB
    :: Proceed with installation? [Y/n]
    (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%
    (1/1) checking available disk space [########################################################] 100%
    (1/1) installing aurphan [########################################################] 100%

  • Feature Request for WSUS

    Feature request
    Server Clean up Wizard.
    Add an option to delete the entire Wsus database/files and start the download all over again.
    Product Classifications.
    Add an option - look only for updates where there is a computer that has a reported software usage.
    It is good that a System admin does not download updates to software example Office 97, when no computer has it installed. And it is also good for Microsoft not to have Office 97 files downloaded from Microsoft servers when there is no software usage except
    when WSUS is forced to download and delete.
    Automatic cleanup.
    A new feature, that builds upon the constant error of wsus database getting to large, and therefor cannot complete the Server Cleanup Wizard "Deleting unused updates". The feature is, run the cleanup within specified x number of days and then do the
    five options without a systemadministrator interaction.
    BRG
    SystemadminDK

    Server Clean up Wizard.
    Add an option to delete the entire Wsus database/files and start the download all over again.
    SenneVL is correct -- deleting the entire WSUSContent folder can be done through Explorer, although there is NO legitimate use-case in which this should ever be done, despite some very poorly written and misleading guidance available on the web to do this
    very thing, for purposes which will never be achieved by doing so.
    As for the database, well deleting the database is tantamount to uninstalling the role, and thus this capability already exists in the product uninstallation functionality.
    Product Classifications.
    Add an option - look only for updates where there is a computer that has a reported software usage.
    I see this request from time to time and fundamentally it comes from a lack of understanding of how WSUS works. One who understands the basic communication pathways of WSUS would realize that this request is impossible to fulfill.
    The ONLY way a computer knows that it needs, or doesn't need, a particular update, product category, update classification, etc., is because there is a *package* in the WSUS database containing detection logic that the Windows Update Agent can test against
    its system configuration. Only *then* could it be known whether any given package/product/classification is needed by any system.
    Ergo, the architecture of the system is [1] first get the packages, then [2] determine if the packages are NEEDED, and if so [3] APPROVE the packages for deployment to the systems that need the package.
    Yeah, I'd like a system to miraculously know which of my systems need which updates too ... although how would such a system ever know that I don't WANT to deploy certain updates, like, say.. I don't install Silverlight on Domain Controllers, or MS13-083
    is particularly problematic?
    While it's a nice dream to have a fully automated "hands off" patch management system, the reality is that patches are built and tested by humans and therefore require *human* involvement in the process of deployment.
    It is good that a System admin does not download updates to software example Office 97, when no computer has it installed.
    It is also good that a sysadmin has a nominal clue about what is or is not installed in their environment before they worry about patching it! A key component of every patch management implementation is a complete software inventory. While I can certainly
    understand missing the one system that still has an instance of JRE6 or Flash10 installed, I think not knowing what version(s) of a $400 productivity suite are installed is a different beast.
    And it is also good for Microsoft not to have Office 97 files downloaded from Microsoft servers
    Also, you could have picked a more realistic example. Office '97 has never been available via WSUS!
    Automatic cleanup.
    A new feature, that builds upon the constant error of wsus database getting to large
    Funny you should mention this. The solution for this problem is to actually (and correctly!) use the automatic cleanup tool that's already provided in the product.
    and therefor cannot complete the Server Cleanup Wizard "Deleting unused updates".
    The *only* reason this happens is because the tool is not used in an appropriate manner from the time the WSUS server is first implemented!
    If you *want* to fully automate it (e.g. run it as a scheduled task), that can easily by done by using PowerShell and Task Scheduler.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • Gcc: feature request

    hello there!
    Well i need a java compiler, i know that gcc has java support but for any reason arch-linux's gcc isn't compiled with java..
    i read the PKGBUILD and notice that the flag --enable-languages hasn't the java option..
    i realize that not many ppl need this so thinking in the arch way never it will be included..
    i'm too lazy to recompile gcc every new release just to add java support, yeah i know that i can install JDK but i really want to try gcj..
    this is a little feature request for the next releases of gcc.. hope the gcc mantainer read this
    greets,

    I think your best bet is to build your own package and list gcc in the NoUpgrade field in pacman.conf, so it doesn't get replaced with the stock gcc package.

  • Feature Request: Several Key Items

    I am not really new to DPS. Have been publishing under contract for my client for the last 2 years now and it's been going great. However, there seems to be a few things we wish for that we can't seem to do. I figured this is probably the best place to request these features, I'm keeping my fingers crossed that somehow these make their way into an update or are considered maybe for other program features (you'll see what I mean later when I get into it).
    1) It would be nice if we could produce apps for android phones as well as tablets. I am more of an iOS guy but we do have a bunch of users who want to access these folios on their phablets and android phones but cannot get access to it. I don't know how complicated this process might be but it would be a great feature to add in any upcoming DPS releases.
    2) We are using DPS for publishing but we have been requested to use it in an "app style". The client wants this because they are comfortable with DPS and happy that their staff can use pretty much all the adobe suite programs. Maybe an ability to disable the browse toolbar (where the thumbails for articles show up and navigate). This way we can create a single page with MSOs and trick the user into thinking they're in an app instead of a digital magazine publishing platform app. This would work great for companies that want an app to accompany their magazine and display info about the company, how to reach them etc instead of having certain pages within the magazine.
    3) A muse widget. I would love if we could directly export muse files directly into DPS (say, as if we were importing an image). I know this may be much to ask since this isn't the Muse feature request board but it woudl be nice to be able to export it as a widget that will automatically package it into an element with all the required files to import into DPS.
    4) As muse and DPS are both great apps for designers who don't know how to code, maybe one or the other, or creating an app that is based off of the two could be an excellent choice for deisgners. There is a huge gap in the market for app builders. Muse is mainly a web builder and DPS is mainly for publishing. I think if Adobe could maybe mash the two into an app that helps users build basic apps. Imagine being able to make an app the same way you do in DPS? Having preset widgets such as capture image from camera, use geolocation, upload to server or whatever. I'm not too verse in this but it'd be nice if I could use an Adobe app to build an app that wasn't just a digital magazine. Maybe my lack of knowledge in this area is simplfying the whole process so forgive me if that's the case. From a business perspective it just seems that there is a huge gap for this, and maybe Adobe can conjure something up for the Adobe Faithful.
    5) Automatic web viewer. Would be nice if whatever displayed on my iPad can automatically shoot up into a web viewer linked to a business catalyst account or a specified server as an HTML5 file. Again, I haven't gone too much into the web viewer version so forgive me if this already exists, but I have looked through some documentation and not really found much on it.
    6) WIDGETS! More widgets like muse would be a life saver! Maybe something like a slideshow instead of just having the MSOs fade in and fade out, maybe allow a widget to do a slideshow that snaps into place everytime you swipe. It seems more natural since a lot of the apps function this way. Widgets also open up a lot of doors, maybe allowing users to create their own widget and housing a widget library on the adobe website?
    Just some thoughts, not sure which ones are really doable but I figured it's worth a shot requesting them.
    Thanks for your time!
    Best Regards,

    Adobe - Wishlist & Bug Report
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Feature Request (again); Adobe Bridge Cache Manager

    In Adobe Bridge, the Cache is still a problem and a huge memory hog. I asked for a good Cache Manager over 3 years ago when it was needed CS4.
    Now in CS6, I am disappointed that the cache system in Bridge has not changed. Why do you have a section in the Adobe Forums that asks for 'Feature Request' and then ignore them?
    http://forums.adobe.com/message/2652688#2652688
    "I would personally like a tool within Bridge that allows me to manage and control the Cache in a more personal and effective way. I would like a toggle that would keep '100% previews' in one folder for a selected period of time (1 day to 1 month) before the folder's cache is automatically purged. And another toggle that would give me the option to keep a selected folder's cache permanently intact (such as an Important Portfolio Folder or an Edited Images Folder).
    As a photographer, I take and edit a lot of photos. When I import a photoshoot with 1,500 photos (not uncommom at all) I enjoy having the Bridge Previews at 100%, but for only a limited time. Unfortunately, I forget to purge the individual cache of that folder and the cache builds to a point that makes Adobe Bridge CS4 very slow. I then have to Purge the whole Bridge Cache in order to make Bridge run smooth again.

    gumbogood wrote:
    A Cache Manager tool that lets me either schedule a cache cleaning on a folder, or keep it permanent, would be a huge help. And I don't think that it is unreasonable for me to ask this of Adobe.
    If you submit a feedback poll where Yammer pointed you, and it gets a couple of hundred (thousand?) users agree you might get Adobe's attention.
    I agree with Yammer that Bridge is a low priority project with Adobe.  Think their target audience is the casual user with a few hundred photos added each year.   Your use pattern is more specialized and you either have to adapt with scripts or move to another product IMO.
    The size of cache takes a lot of people by surprise.  It can grow humongous if you use HQ thumbs and save 100% previews.  One can dump the cache in preferences, but many are reluctant to to this as they think it will delete all their keywords and edits.  In addition, to do a search you have to re-index all your files, which can take a long time.
    If you have "export cache to folders" checked, dumping the cache in preferences only dumps the central cache.  To dump the folder cache you have to visit each folder and click on Tools/cache/purge cache for xxx folder.  Again, most people do not recognize this.  This technique purges both the central and folder cache for this folder only.
    It the 100% previews are the problem for you it would seem like a simple task for the script people to write one that would delete it after xx days as the 100% previews are held in a specific folder.
    Bridge is not a good digital asset manager.  You are probably in that arena dealing with several hundred thousand images.  Omke uses a DAM as it does some functions better than Bridge, but Bridge is still his main program.  Can't remember the name, but if you read these posts you might have seen it.

  • New ideas for pacman features

    I'd like to start a discussion about pacman and some features I would like to see in it.
    If I compile something with srcpac instead of installing with pacman, it would be nice if pacman remembered that I did so and recompiled the package next time I get an update of it. For instance: I compile my own (beyond) kernel, so I have to compile the kernel modules I use too. It would be nice if it could happen automatically: the kernel modules already get updated with the new kernel, so it would be just a matter of remembering that I like to compile these packages.
    srcpac already supports the automatic alteration of a PKGBUILD, but it would be nice to have a more systematic approach like the make.conf file on a BSD system. This would make it easier to compile some packages with other than the default options of the PKGBUILD. The current grep method is too heavily depending on the format of the PKGBUILD and fails when the maintainer changes the PKGBUILD.
    What are your ideas/opinions?

    Dusty wrote:This sounds more like a srcpac feature than a pacman feature. Srcpac isn't an official part of Arch Linux, so integrating anything into pacman isn't likely to happen.
    Why should these programs be separated? I think it would be wonderful to have one package manager where you can choose what to compile and what to take from binary packages. While I like binary packages, now and again there are packages I have to compile and it would be nice if it could be done automatically. makepkg and srcpac are fine for installing these packages, but not when updating the system. An easier and more robust approach to changing PKGBUILDS automatically by using variables that can be defined in a BSD-like make.conf file would be great.

  • Version 1.2.0.2998 (Windows XP) "Save As" feature request

    The "Save As" dialog does not remember the last directory saved to, nor can I find a way to customize the three Location buttons (Project, Home, Work) or add any additional Locations.
    If I save a package body as "R:\foo.pkb", the next time I "Save As" from the same window, it reverts to saving in my home directory (C:\Documents and Settings\username" with a ".sql" extension.

    As stated in the Feature Requests sticky post, requests go to the Exchange.
    There you will find various requests about this already; vote and add comments on them.
    Regards,
    K.

  • One Small Feature Request

    Well, I got the Add-In installed and working. Looks pretty good. One small feature request I have, that I have become accustom to doing from another tool that I use is that when editing a package, in the Oracle Explorer window, when you expand the Packages node, then expand the package you are working on, it shows a list of procedures and functions in that package. This is great. Now what would be really great is that if you could double click on one of these procedures or functions it would take you to that place in the code of the package body.
    So for example, let's say I have a package called Pkg_DoStuff. Pkg_DoStuff has three procedures, Foo1, Foo2, and Foo3. When I expand Pkg_DoStuff in the Oracle Explorer windows, I see nodes for Foo1, Foo2, and Foo3. Now, if I double click on Foo3, I would like the code window to place the cursor at the start of the Foo3 procedure in the package body.
    Thanks,
    Kevin

    Another feature request:
    Please add a Raptor feature to the Data Connections and allow users to apply filters to tree browsing. We use Oracle Apps 11i, and there must be about 50 thousand tables, views and packages that can potentially be visible. It usually takes several minutes for the Data Connections tree to respond when I bring up a list of tables even for a login with limited access. However, with the filter applied in raptor, I can browse very quickly to tables, views and packages that I need.
    Thank you.

Maybe you are looking for