Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-03-2013, 12:37 PM   #1
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Rep: Reputation: 56
How to safely rebuild X server

Hi all, I need to rebuild my X server, in an attempt to resolve the issue I'm experiencing in this thread.

I'm not new to installing software from source, but I've never had to update something as integral as the X server. How do I go about doing this without screwing my system up? Do I need to first remove the copy that slackpkg knows about? What steps can I take to ensure that reverting back to slackpkg's copy if needed is simple and reliable?

This is on my work laptop, so I really need to get it back into a working state as quickly as possible.


Edit: Actually, is there a way to unpackage the Xorg package included in Slackware, modify it, then repackage it and install with installpkg? I think that would be the easiest and safest option, if it's possible.

Last edited by mattca; 12-03-2013 at 01:16 PM.
Old 12-03-2013, 02:02 PM   #2
Registered: Mar 2010
Location: oregon
Distribution: slackware64-14.2
Posts: 216

Rep: Reputation: 84
One way to rebuild something that was included with slackware, is to use the slackbuild script that you find in the "source" folder in the top level of the slackware tree... usually just replace the source in the build directory with updated source, manually update the version number in the slackbuild script, and then execute the slackbuild script, and use installpkg to install the new package after it is created...
1 members found this post helpful.
Old 12-03-2013, 02:30 PM   #3
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Hi, thanks for the suggestion! After some googling, I discovered the "explodepkg" and "makepkg" commands that should help, but exploding gives me binaries, not source. Your suggestion should get me the rest of the way there. I'll update here if I run into trouble.
Old 12-04-2013, 02:07 PM   #4
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Alright, I'd appreciate a sanity check before I take the plunge here.

Here's what I've done:

- Download everything from this url:
- Unpackage the xorg-server source in this file:
- Patch it as needed
- Run this slackbuild script:
- Now I have a series of slackware packages in /tmp/x11-build
- End my X session
- Remove my installed xorg-server package
- Install this xorg-server package:

Does that sound right?

One more question - how do I make sure slackpkg distinguishes between the two packages? Is it enough to rename my new one with something like "-patched", and blacklist the old one?

Any other tips or gotchas I should be aware of?



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
[SOLVED] ntp safely on server, ntpdate? --debian GreggT Linux - Server 5 06-30-2012 05:14 PM
InterNetNews server. Can't rebuild history file. LMW Linux - Server 0 03-03-2012 01:36 AM
can you apply 2.6.x kernel config to 2.4.x safely/somewhat safely? silex_88 Linux - Software 3 12-09-2005 11:38 PM
Can YUM Run Safely On FC2 Server? dmedici Linux - Software 1 08-17-2004 04:41 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:02 PM.

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