Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-08-2011, 11:33 PM   #1
LQ Newbie
Registered: Mar 2011
Location: Utah
Posts: 6

Rep: Reputation: 0
safe to delete installed .tgz packages?

Okay, so i read somewhere (I think an article by AlienBob) that you needed to make sure .tgz packages where located in a safe place as opposed to the home directory so as to prevent accidental deletion.

I have a number of .tgz packages that I have already installed and moved to the /bin/ directory for safe keeping, but its not very orderly, ya' know?

Is it safe to delete/rm these .tgz files? Im assuming that the installpkg command extracts the creamy nougat inside and puts it somewhere useful.

Also, even if it is safe to delete, what is best practice in this case? keep them forever in some isolated directory?
Old 03-08-2011, 11:48 PM   #2
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,773
Blog Entries: 17

Rep: Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313
I would make a directory in my home directory and store them there. I would not delete them, just in case I needed to reinstall them at some future date.
Old 03-09-2011, 12:43 AM   #3
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 606

Rep: Reputation: Disabled
"Is it safe to delete/rm these .tgz files?". Direct answer is yes. Once a packages is installed the package is no longer needed.

As for keeping packages? It really a user preference. I keep them in "/home/non-slack/installed/" and "/home/non-slack/packages/". Comes in handy if I need to reinstall a package, especially one that takes a long time to build. Reinstalling is very rare occurrence for me. Normally that package just sits there until it's replaced by an updated one.

If I decide to wipe and do a fresh install (rare), then it only a mater of restoring "/home/non-slack", changing to the installed directory and running "installpkg *.t?z" to install my non-Slackware packages.

If my system gets really hosed, that is what backups and images are for.
Old 03-09-2011, 12:49 AM   #4
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,218

Rep: Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517
It really depends on just what the "tar balls" are .
I build a lot of source and only delete the old source files after i install a NEW version

i set up a DATA partition with a /src folder
( where DATA is the DATA hard drive and /opt is the mount point )
new version of say "Gimp " comes out i run "make uninstall" in the old folder and then build the NEW version
If the new version runs fine i then remove the old folder .

Last edited by John VV; 03-09-2011 at 01:18 AM.
Old 03-09-2011, 12:59 AM   #5
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Regards deleting them, when you would no longer re-install from them then there's no point in keeping them (examples: change of OS or you would install another software or a later version).

Regards keeping them securely, they are normally replaceable in the same way you got them so having them is only a convenience. You can balance the cost of keeping them securely (HDD and backup space usage, administration) against the benefits of having them (time saved if you need to re-install) taking into account the probability of loosing them and re-installing. It could be called "probabilistic cost/benefit analysis"

FWIW I keep them in dedicated directories (/home/c/d/Repository/Slackware <version or noarch> packages/) and those directories are routinely backed up with no special effort. When the file system is short of space I delete obsolete files in those directories.
Old 03-09-2011, 02:24 AM   #6
LQ Newbie
Registered: Mar 2011
Location: Utah
Posts: 6

Original Poster
Rep: Reputation: 0

Cool, lots of replies! Glad to hear that deleted .tgz files wont bring down the system in the future. Good advice to keep the files in a separate folder for rapid redeploy in case of reformat. Thanks again.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I delete RPM Packages from where I downloaded them AFTER they are installed? Balarabay1 SUSE / openSUSE 3 05-27-2006 10:18 PM
Install tgz packages shadkong Slackware 22 10-26-2005 02:07 AM
What Slackware Packages are safe for me to delete? C. nemoralis Slackware 8 07-18-2004 02:50 PM
installing .tgz.tar packages slack_is_good Slackware 6 12-18-2003 01:14 PM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 07:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration