LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-24-2005, 07:59 PM   #1
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Question Checkinstall backup packages


I run Slackware and have been installing from source using checkinstall since I got this computer. My /usr/local/src directory was filling up fast, so I recently deleted everything there to free up space. Later I was hunting around in packages and saw that checkinstall creates two .tgz files in the source directory of whatever it's installing. The first looks like the actual package that in installs, so I don't see why there's any harm in deleting that (you can always redownload and make), but each one also has a backup-foo.tgz. I looked around at some documentation but don't understand exactly what this backup package is. Is it wise to keep these for everything I install, and, if there is a good reason to do this, is there a way to automatically put all these backup packages somewhere else (so I can continue deleting source directories to save space)?

Thanks.
 
Old 07-25-2005, 01:12 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I've been using Checkinstall for over a year now, and check mine:
Code:
mingdao@james:~$ ls -alh /usr/local/src
total 0
drwxr-xr-x   2 root root  48 1993-11-25 01:32 ./
drwxr-xr-x  13 root root 312 2005-05-31 08:35 ../
And the only .tgz file I have from Checkinstall is the Slackpack it created:
Code:
mingdao@james:~$ locate *freetype*.tgz
/home/mingdao/tarballs/freetype-2.1.9-abh-1.tgz
mingdao@james:~$ locate *gaim-encryption*.tgz
/home/mingdao/tarballs/gaim-encryption-2.36-mk7-1.tgz
mingdao@james:~$ locate *rpl*.tgz
/home/mingdao/tarballs/rpl-1.4.0-mk7-1.tgz
mingdao@james:~$ locate *xmms*.tgz
/home/mingdao/tarballs/xmms-cdread-0.11d-mk7-1.tgz
those are four examples.

I think you need to read /usr/doc/checkinstall-1.5.3/README and then edit your /etc/checkinstall/checkinstallrc file.
 
Old 07-25-2005, 08:57 PM   #3
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
Ok, I've read the file and set up a packages directory, but will the backup packages go there too? What exactly are the backup packages, and should I care about them? Also, I assume you are deleting the .tar.gz and untarred directory manually after installing each package?

Thanks again.
 
Old 07-25-2005, 09:29 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by jrdioko
Ok, I've read the file and set up a packages directory, but will the backup packages go there too? What exactly are the backup packages, and should I care about them?
I don't know anything about any backup packages.
Quote:
Also, I assume you are deleting the .tar.gz and untarred directory manually after installing each package?

Thanks again.
I usually keep the source on my server in /downloads just in case, along with the Slackpacks I create in /tarballs

I do read in the documentation
Quote:
Additionally, it will leave a copy of the package in the source directory,
the package's name will be name-version-architecture-release.tgz.
but I don't remember it doing that with my present setup. I believe that is the default if you don't specify a path for the tarball. I'll post my file here on pastebin.com so you can look at it. They delete entries after a period of time, so if you miss it, let me know.
 
Old 07-25-2005, 09:34 PM   #5
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
Thanks for the info. Anyone who knows about backup packages care to help with that part?
 
Old 07-25-2005, 09:43 PM   #6
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Grep for 'backup' in /usr/doc/checkinstall. It says something about checkinstall creating a tarball of all overwritten files to allow you to restore if there's a need.
 
Old 07-25-2005, 09:46 PM   #7
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
I read that, but, if I'm not mistaken, those backup packages seem to be created for every package I install, even if I'm not overwriting anything I'm aware of. I'd also like to know how important they are (what are the chances of a make install overwriting something important anyway?), and if they get put in the packages directory specificed in the checkinstallrc file.
 
Old 07-25-2005, 10:13 PM   #8
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Checkinstall only does what 'make install' or similar calls for. So, it won't protect you from a script which wipes out previous config files. As far as I know, PAK_DIR is the location for newly created packages, not old files.
 
Old 07-25-2005, 10:22 PM   #9
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
Well, I understand that I won't be protected from some malicious/poorly-designed program that does something like wiping out config files, but shouldn't I be safe with the vast majority of things after, say, running the program once to make sure all is well? I can manually move these backup packages to the PAK_DIR if necessary, but I'd like to know why they're created with every installation (even when things aren't being overwritten) and if I'm missing anything before I go deleting them every time.
 
Old 07-26-2005, 07:37 AM   #10
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Checkinstall creates a backup-package when invoked for the second (or any other subsequent time).
 
Old 07-26-2005, 07:14 PM   #11
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
Meaning the second time it's ever run or the second time it's run for a particular package name? In either case, why would it do so if you've already removed (or don't have in the first place) any previous versions of the program?
 
Old 07-26-2005, 07:34 PM   #12
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
The second time on the same source code.

Does it do that? You should use it a while,
after editing your checkinstallrc file, and see
what it actually does.
 
Old 07-26-2005, 08:26 PM   #13
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
Hmm, I'll play with it next time I have something to install, but I believe I've seen those for every package I install.
 
  


Reply



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
Checkinstall in 5.1.1 Kroenecker Linux From Scratch 5 07-13-2004 11:37 AM
Upgrading packages using checkinstall jrdioko Linux - Newbie 10 06-28-2004 08:26 PM
checkinstall... marsques Linux - Software 3 05-25-2004 12:56 PM
Using 'checkinstall' gonzalo76 Slackware 20 05-20-2004 06:09 PM
Checkinstall ... durden2.0 Linux - Software 1 07-02-2003 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:11 AM.

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