[SOLVED] Is there a way to reset /usr/local ?
I've used /usr/local to test a program without installing it to my system with pacman. Prior to this, /usr/local was empty. I'm still learning Linux, but it seems that /usr/local (in the case of Arch) could be used as a playground since nothing gets installed there (at least not in my personal history of using Arch) so that is why I've tested in that location. The only downside is that I've had to add environment variables to my system, but that's no problem.
So currently, /usr/local contains files pertaining only to one single app (in the various directories, e.g. bin, lib, etc). It'd be neat if there was a way to reset /usr/local to factory standards so I don't have to dig through every folder and delete stuff manually.
Is there such an app/script?
If /usr/local isn't meant to be used in such a way, perhaps it'd be convenient to have a folder called /usr/test or something? Or is that what the /tmp folder is for?
THanks for the enlightenment!
Last edited by trusktr (2012-04-01 22:04:08)
@trusktr. What you describe seems complicated and not much reliable. The stage 3) of my script "find the files that are cnewer than the file in /tmp" and make a log of the result in a file in /var/log that I leave there for reference. Of course I install only one package at a time. Your solution has the problem that if you touch in any way a file that belong to the package after it has been installed (because you or some tool modify a configuration file, for instance) you would loose the ability to track it (this would update the ctime to the actual time).
Removing a package is a little more complicated that you describe and cannot be fully automated. Some files are caches of files present in the filesystem (/usr/share/mime/mime.cache for instance) or are just modified by the installation of the package (/usr/share/info/dir) and contains information for several packages. You cannot just delete these files, you have to handle these properly.
Of course the good ways to do things would be to write an archlinux build script. But with my method, there is no additional work to install the package and, although it requires a little attention, it make at least the package removable.
Just for the info, I post my script here (it was written for my personal use with no man pages) (license: public domain):
http://pastebin.com/NTt6RPVE
Similar Messages
-
Is there a way to reset my messages account, I can't get iMessage to work on IPad nor Mac osx. Help please this is really frustrating.
Hi,
Is there an iPhone involved ?
If not, what happens if you remove the Apple ID on the iPad and then set it in Airplane Mode (allow a couple of minutes at this point) followed by re-adding the Apple ID ?
What, if any error messages are appearing on the Mac when you try to launch the App or Login to the iMessages server ?
Is the Apple ID linked to an iCloud account ?
In Messages 7 (Mountain Lion) this did not seem to be important but it seems it is in Mavericks/Messages 8
9:14 pm Friday; April 11, 2014
iMac 2.5Ghz i5 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad -
Is there any way to reset my iphone i did the latest update and now i cant download any new apps? I tried to do the general reset but it keeps telling me that my passcode is not correct. This is the same passcode that I use to unlock my phine though to get in to it.
press and hold both the power and home buttons until the apple logo appears and then let them go. Wait till the phone restarts and then try
-
Is there any way to reset security questions without a vocal contact with Apple?
Yesterday I've tried to buy a song from iTunes, and it's surprised me that I've been ask to answer some security questions I have made long time ago and unfortunately I can't recall the answers of these security questions, I've tried to reset the security question by this site applied.apple.com and the reset link is not appearing under the answer box!!
Is there any way to reset security questions without making a vocal contact with Apple ?
Best Regards,Click here and ask. If they say that there isn’t, and they probably will, accept that.
(122113) -
I set up a passcode to ensure the security of my iPhone 5 but, when I enter it on the home screen, I repeatedly receive an error message and my phone locks. Is there a way to reset the passcode when I am unable to gain access to my phone?
I figured that was the case, but I've used the same passcode for years and I can't seem to figure out how I managed to screw it up when I set up my phone. Without being able to access my phone for a restore, how would I accomplish this? iTunes? Thank you very much for you help!
-
y Time Capsule is working fine with ethernet connection, but it is no longer working with wifi, probably because of my wrong setting; is there a way to reset wifi setting without losing backuped data? Thanks you all
Giancarlo Messalli wrote:
1) are you sure a reset holding the reset button will not delete my data?
Absolutely sure.. There is no connection at all.. reset is only the router side of the TC.
For the hard disk to be erased you need to access the airport utility disk page.. request erase and confirm the operation.
2) I can access to time capsule by ethernet but I am not able to input the corret setting by myself
Thank you again
I am uncertain why if you have access you cannot change settings.. but that is why you reset things so any of those problems should be fixed.
Here is the Apple info on reset.
http://support.apple.com/kb/ht3728
And here is the quote from the horse's mouth so to speak.
Factory default reset: Perform this reset if you wish to repurpose the AirPort Base Station or Time Capsule and want to remove all personal profiles and settings first. This reset resets the device to its state when you first purchased it. Data stored on internal or external hard drives connected to the device will not be erased. If you choose, you may manually erase the hard drive using AirPort Utility. -
Exchange active synch - I keyed the wrong passcode and now it is not asking for a passcode just tells me that I cannot access my business email.. Is there any way to reset ?
press and hold both the power and home buttons until the apple logo appears and then let them go. Wait till the phone restarts and then try
-
Is there a way to reset my 4 digit pin? my old one is not being accepted.
Is there a way to reset my 4 digit pin? my old one is not being accepted.
The only way to remove a passcode is to restore the device.
Read:
Forgot Passcode or Unable to Restore
(Note that I am a representative of the organization of the above link, which is not endorsed by Apple). -
i have a screen with the apple logo on it and a bar underneath it. it has been this way for about an hour now. what does this mean and is there a way to reset the iphone without going into the store? it isnt showing in my computer or on the itunes page.
Try:
- iOS: Not responding or does not turn on
- If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
- If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order. -
I forgot the password to a pages-document, is there any way to reset the document?
I forgot the password to a pages-document, is there any way to reset the document?
Thank YouNo, Apple can't help. Just connect the iPod to your computer and restore via iTunes. If necessary, place the iPod in recovery mode. For that mode see:
http://support.apple.com/kb/HT1808 -
Is there a way to reset them in the OUTLOOK template
In setting up my Pop3 email accounts I did not group them into a singular account.
Now they are all separate.
Is there a way to reset them to the OUTLOOK template?Hi,
I'm still not sure what you mean by "group", but based on the description, is that Outlook Profile?
We can create multiple Outlook Profiles, with each profile we can have multiple accounts in it, that may be why you call it "group".
We can find the profiles from Control Panel -> Search "Mail" and open it -> Show Profiles. Once Outlook starts, it has to choose a profile, or the default one.
If you want to add accounts to the profile, double click on the profile name, then click "E-mail Accounts", then click "New" to add a new account.
Regards,
Melon Chen
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
HT4528 Forgot password to log on to phone, is there any way to reset?
Forgot password to log on to phone, is there any way to reset?
Options for when an iOS device gets locked because of forgotten passcode:
Restore (and reset passcode) on your device by connecting it to the last computer to which it was connected:
iTunes: Backing up, updating, and restoring iOS software - http://support.apple.com/kb/HT1414
If you cannot connect it to the computer to which the device was last connected (or the device was never connected to a computer) you will have to use recovery mode to completely reset the device, losing all data:
iOS: Unable to update or restore - http://support.apple.com/kb/HT1808 - recovery mode (e.g., cannot connect to computer last used to sync device, iTunes still asks for a password) -
My zagg key board connects but the keys I type either don't type character, type 2 characters that are different when I hit only 1 key, or doesn't type at all. Is there a way to reset zagg keyboard to factory settings?
Recharging is a good thing to try. They do start to act odd when the battery gets low. Beyond that, just like Tom says, contact Zagg. I have one of their keyboards and the company has wonderful customer service.
-
I forgot my password for my device restrictions, is there a way to reset it??
I forgot my password for my device restrictions, is there a way to reset it??
As noted in iOS: Understanding Restrictions (parental controls) you will need to do a factory restore: Use iTunes to restore your iOS device to factory settings
-
I have been trying to make a purchase from the apple store and I keep being asked to answer my security questions. I don't remember what my answers are. Is there a way to reset your questions or find out the answers to your old ones?
Yes, go to the AppleID FAQ for how to reset the questions.
Maybe you are looking for
-
Example: on the home page of the website http://www.dot.ri.gov there is an active link entitled "Overview of all Iway changes - Fall 2010" Clicking on it exposes the following url: http://www.dot.ri.gov/documents/iway/Iway_Changes_Fall2010.pdf Howeve
-
Can't figure out syncing contacts with Windows 7 mail
I've only been using Windows 7 for about a month and can't figure out why the contacts from my iPhone won't sync to the Windows Live mail of Windows 7. I want my phone contacts to override my mail contacts, not the other way around. In the INFO tab o
-
Pdf pages for fast open on the web
Could I please receive suggestions on how to have CF Server created Pdf pages with .Jpg pictures open up fast of the internet? The system which we have created for this organization is great, everything works, but the Pdf pages open very slowlyyyyy.
-
Forward to several addresses does not work with Yahoo account
My wife uses a MacBook Air and a YahooPlus in Mail. It works well except when she wants to forward mail to several addresses. She gets an error message (something about smtp server...don't know exactly) When she forwards the mail one by one it works.
-
My mini mac recognizes my usb mic, but premier pro does not list it under preferences?
my mini mac recognizes my usb mic, but premier pro does not list it under preferences?