Package Management Best Practices
Hoping some experts here can clarify a few things for me because I don't want to get too far down the road only to have an epiphany that I made some critical mistakes early on.
Patches 1. What is the recommended place to store downloaded patches? I'm using Alienbob's patch sync script (http://connie.slackware.com/~alien/t...are_patches.sh) to download the patches and I downloaded them to /home/ftp/pub/Linux/Slackware/<arch>/patches/packages/ because that's where the script defaulted them to. 2. Are the patches in <mirror>/patches/packages only security updates or are they general software updates? In other words, is there any chance that a patch might conflict with (or break) a replacement package from the AlienBob's repo? I understand I can make an exclusion, I just don't know if that's necessary for patches. Slackbuilds I'm using sbopkg (http://www.slackpkg.org) for interacting with slackbuilds.org. I think that program is downloading into /tmp but I'm not 100% sure about that yet. 3. Are binaries built with sbopkg supposed to stored in a specific directory (I imaging they would need to be in order to be able uninstall them later). How about the source? Is that supposed to be stored in a specific directory? slackpkg 4. Is slackpkg just the software on the DVD or does it include newer versions of the software on the DVD? 5. If it includes newer software then where should the packages (and source) be downloaded? Un-installing software I did a full install since I've never used Slack and I didn't know how well the packaging tools would work. Now I realized that slackware installed a trillion programs, most of which are duplicates (why are there like 7 text editors?). Now I want to start removing pretty much everything other than my core set of 10 or so programs I use on a regular basis. 6. If I use removepkg and that only removes the program, isn't it going to leave behind all its dependant libraries? Sorry to make this so long but I've been reading the manual (RTFM) for a few days now and I'm still trying to work out the right way to do these things (freedom is great; but just because you can download anywhere doesn't mean you should --i'm sure over the years some best practices have bubbled up about the right way to deal with packages in slack Cheers! |
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Thanks for your feedback. The point of my question was Best Practices though. I understand I can do whatever the hell I want to do but all IT is more or less that way. I can hook new System.Data.SqlClient.SqlCommand("DELETE FROM myTable"); but that doesn't mean I should. Through years of solution development we have established Best Practices that articulate the best ways of accomplishing and managing things. In the case above, we implement NHibernate OR/M mapping abstractions to deal with scalability and cross platform solutions.
I apologize for the Microsoft reference there but I'm a Windows developer. I really want to know what the best practice is. Should an administrator download packages from the mirror into a specific location on the workstation. Are there any standards in place to guide administrators on these types of practices? Thanks again! PS: I can't seem to find anything even remotely comparable to the UbuntuGuide.org wiki out there for slackware. Has anyone considered creating a Slackware wiki to put all this information in a single central place? The Slackbook is a decent starting point and there's a tiny wiki here but again, nothing like the wikis you see for other distributions. |
Quote:
Uninstalling (as I'm sure you know), is done with "removepkg packagename", as in "removepkg emacs". Slackware has a single file listing its installed packages (/var/log/packages). So if you forget what the last letter in "emacs" is (and I know this is a bad example) then you can still uninstall it with "grep emac /var/log/packages | xargs removepkg". |
Quote:
Awesome Thanks! |
Quote:
Quote:
|
Quote:
Quote:
Quote:
|
Quote:
Code:
slackpkg remove emac |
Thanks again everyone! I'm extremely grateful for it. Its been a week or so in and I'm really, really enjoying Slackware. Other than not being able to print from my HP network printer, everything has gone rather smoothly. My only regret to this point is that I did a 'full installation' because I was worried about the bad reputation for slackware's package management so I ended up with a zillion programs on my machine that I'll never use. If I had known about slackpkg, slackbuilds.org, and alienBob then I would have just installed a base system and only installed the packages I actually wanted.
In any event, so far so good. Thanks again everyone for being so helpful! |
It is totally recommended to make a full installation when you are new to Slackware. Learn your basics first, then you can try to run slimmed down systems, if you need (or want). On modern desktop systems with harddisks in sizes of TBs a Slackware installation of about 6GB isn't that much, so I wouldn't consider saving space a high priority. Since Slackware does not run many services by default you are also not wasting other resources with that approach.
|
Quote:
|
Quote:
Here is what I do when I install Slackware. I choose all the packages from the following series A, AP, D, K, L, N, X and select the one I want from XAP. I think this is a good "minimum" for a X workstation. With these, you are sure to have all needed libraries, essentials programs and the possibility to compile software. I don't install any from E, F, T, TCL, KDE, KDEI. Of course, you should adjust this list to your needs. For being able to do that, you need to choose 'menu' or 'expert' as prompting mode during installation. As you've been said, you cannot install only what you use, as Slackware packages manager doesn't provide dependencies resolution. If you want to use KDE, then you need the KDE serie and then it will not save you much space to try not to install all other packages. KDEI is definitely not needed unless you enjoy a different language every day! In your case, if you look at the content of each serie, you can still easily remove unwanted software and find peace of mind :-) When upgrade time comes, (next Slackware version) you'll have to adapt slightly the upgrade procedure (UPGRADE.TXT) otherwise you'll end up to install everything again. |
Quote:
Code:
usermod -G lp,sys -a youruser Good luck. PS - It's installed because you did a full install. |
Quote:
I added myself to lp but not sys. I'm really busy at work today but I'm going to try this as soon as possible |
Member response
Hi,
Quote:
Since LQ Slackware forum is the official forum you will find helpful and resourceful members willing to help. Look at the the links in my sig and you will find several good points of reference. SlackwareŽ-Links is very resourceful and more than just SlackwareŽ-Links; Quote:
Alien Pastures is Alien_Bob's (Eric Hameleers) blog. Alien_Bob is a Slackware team member that provides excellent package resource and development. Alien_Bob provides this mirror & rsync:/taper.alienbase.nl/mirrors/. Be sure to look at the stickies; So you want to be a Slacker! What do I do next? & Slackware.com solutions for users. The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links! |
Quote:
Brian |
Quote:
I'm a Linux hobbyist (and sometime consultant) and I've been using Linux at home since 1998 and even I have had most of my old skills atrophy with the advent of automated package management and the over automated nature of the tools now included in the mainstream distros. I'm really having an absolute blast using Slackware and re-learning all this stuff again! |
All times are GMT -5. The time now is 01:57 AM. |