LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-25-2015, 05:48 PM   #1
lonewolf28
LQ Newbie
 
Registered: Sep 2015
Location: Canada, Halifax
Distribution: Slackware, Gentoo
Posts: 12

Rep: Reputation: Disabled
RE: Installing packages


Hi Everybody,

I've been a slacker for almost three months and i'm loving it.
I have few questions that i'd like to be clarified. Currently, i download the slackbuild file un-tar it and then i download the source file and install the package. All this is done as root in root's home folder. I don't delete them so that i know when i remove a package i remove it along with the dependency if any. I was wondering if my approach is right or is there any other better way to do it. Right now, root's home dir is full of *.tar files and directories.It looks messy.

Thank you for your time.
 
Old 11-25-2015, 06:09 PM   #2
Philip Lacroix
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 441

Rep: Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574
Hi. You might want to maintain a text file with the dependency tree of your own installed builds: this way it might be easier for you to remember what depends on what, and to keep the system free of unneeded dependencies when you remove something.
 
1 members found this post helpful.
Old 11-25-2015, 06:10 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Where are you getting your SlackBuilds from? It sounds like SBo (slackbuilds.org) since you mention untaring the slackbuild file and downloading the source. If so, many are using SBo frontends like sbopkg or sbotools. These keep the stuff out of your home directory (although, it just moves it to another part of the filesystem, under /var) and makes building software much more streamlined.
 
1 members found this post helpful.
Old 11-25-2015, 06:20 PM   #4
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
RE: Installing packages

I'm curious about your text file to track dependencies.

Does it looks like a sbopkg queue file?

I'm just using sbopkg for a little while and failed for now to download the whole queue files from gitorious so and still looking after a good way to manage my builds history.
 
Old 11-25-2015, 06:40 PM   #5
Philip Lacroix
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 441

Rep: Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574
I don't know how a sbopkg queue file looks like, I've never used sbopkg. In fact I prefer to manage my builds manually, as I find it much simpler. The kind of file I mentioned is just a mnemonic aid, something to look at in order to keep track of what I have installed.
 
Old 11-25-2015, 08:36 PM   #6
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 722
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
I use a directory /home/slackbuilds for mine. To avoid having to rerun the slackbuild, I move the /tmp file to the working directory under slackbuilds.

Assuming that /home is the mount point of a separate drive/partition, you can actually reinstall slackware without having to download and recompile the packages again. (You would still have to reinstall the packages).
 
Old 11-25-2015, 09:20 PM   #7
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
RE: Installing packages

Thanks both for your replies.

@Philippe Lacroix : the queue file gives the build order and the options to pass to the build.

@Psionl0 : I do keep the packages but the recent moves in current made me recompile a few packages... And I'm always trying find the most lazy way to have things done :-D
 
1 members found this post helpful.
Old 11-25-2015, 09:46 PM   #8
lonewolf28
LQ Newbie
 
Registered: Sep 2015
Location: Canada, Halifax
Distribution: Slackware, Gentoo
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thank you @bassmadrigal and @Philip Lacroix. I had installed sbotools from slackbuild and i hope it keeps the installations clean.
 
Old 11-26-2015, 12:26 AM   #9
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 722
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by Tonus View Post
@Psionl0 : I do keep the packages but the recent moves in current made me recompile a few packages... And I'm always trying find the most lazy way to have things done :-D
It was this part of your OP that concerned me.
Quote:
Originally Posted by lonewolf28 View Post
Right now, root's home dir is full of *.tar files and directories.It looks messy.
I would prefer that the slackbuild files were not stored on the same partition as the system (which it is under root). Regardless, your setup would be a lot cleaner if you moved all your slackbuild files and directories under a single directory like "slackbuilds". It would be cleaner still if you moved each .tar file to the directory that was created when you unpacked the file.

Good luck with the "lazy way". My experience is that unless I become an expert on a particular short cut, it always takes longer than doing it the hard way.
 
Old 11-26-2015, 08:30 AM   #10
magicm
Member
 
Registered: May 2003
Distribution: Slackware
Posts: 237

Rep: Reputation: 152Reputation: 152
For a simple, (also lazy) mechanism, I create a separate "build" user, and once I've used the package or other maintenance scripts or notes as root, I mv the files to an appropriate directory under /home/"build". -e.g.
/home/"build"/SBo.pkgs/, /home/"build"/alien.pkgs/, /home/"build"/"personal project 1"/, and so forth.

Keeps /root, /tmp, other directories clean, and provides a simple way to get back to previous installs, etc. should my root "work" bork something. Also, my personal backup scripts deal with /home/"build" ... If you keep /home on a separate partition, that has its own advantages ... I rarely actually log in as user "build", tho I have been giving some thought to converting this scheme to using git ... currently, I consider that overkill, tho.
 
  


Reply

Tags
slackware 14.1



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
Installing packages tomtemple Linux - Software 6 06-07-2015 10:25 PM
installing default packages after installing linux ninux Linux - Newbie 5 09-12-2007 07:00 AM
Help with the following; Installing themes, Installing Mp3 support, .deb packages Kittie Rose Linux - General 2 11-26-2006 01:27 PM
Installing Packages? Frank Soranno Slackware 4 10-13-2006 08:47 AM
Installing packages artman62 Linux - Distributions 0 07-23-2002 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:25 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