LinuxQuestions.org
Help answer threads with 0 replies.
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 05-01-2015, 04:57 PM   #1
b4str1
LQ Newbie
 
Registered: Apr 2015
Posts: 11

Rep: Reputation: Disabled
Question Is there any command or way to upgrade all packages compiled and built manually?


Hi, I am new in Linux and Slackware.

I want to know if there is any way to upgrade all packages that I compilled and built
(With make, make install, etc)

And Also I want to know if there is any register of this packages (To know what I have installed)

Thanks

Last edited by b4str1; 05-01-2015 at 04:58 PM.
 
Old 05-01-2015, 05:06 PM   #2
moesasji
Member
 
Registered: May 2008
Distribution: Slackware Current / OpenBSD
Posts: 322

Rep: Reputation: 104Reputation: 104
Have a look at sbopkg.
 
1 members found this post helpful.
Old 05-01-2015, 05:28 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by b4str1 View Post
And Also I want to know if there is any register of this packages (To know what I have installed)
/var/log/packages
pkgtool
slackpkg (I think)
 
Old 05-01-2015, 05:30 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Let's begin with the second question.

There is a register of all the packages you have installed: that are the files in directories /var/log/packages and /var/log/scripts.[1]

But that works on the condition that you only use the Slackware tools to install them as only these tools update that register, mainly installpkg.

If you use the make, make install method instead of (possibly making yourself Slackware packages with makepkg or running the Slackbuilds @ http://slackbuilds.org then) using installpkg to install Slackware packages, the "packages" (actually, the binaries) that you install won't be registered anywhere.

[1] /var/log/removed_packages and /var/log/removed_scripts register packages removal.

To know more, visit SlackDocs, especially Get acquainted with Slackware.

Now for the way to upgrade: you will just use upgradepkg for genuine Slackware packages and also for the custom ones, but in the latter case you will have to build a new package first, unless you get an upgraded package from a trusted source.

Last edited by Didier Spaier; 05-01-2015 at 05:34 PM.
 
1 members found this post helpful.
Old 05-01-2015, 05:35 PM   #5
b4str1
LQ Newbie
 
Registered: Apr 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
/var/log/packages
pkgtool
slackpkg (I think)
But packages that I build and installed manually (with make, etc) aren't displayed with pkgtool or when i do a ls of /var/log/packages
 
Old 05-01-2015, 05:35 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by b4str1 View Post
But packages that I build and installed manually (with make, etc) aren't displayed with pkgtool or when i do a ls of /var/log/packages
No they are not.

PS That's why Slackware users are encouraged to exclusively use Slackware tools to manage their packages, namely explodepkg, installpkg, makepkg, pkgtool, removepkg, upgradepkg and slackpkg. That way they are guaranteed for instance to always be able to cleanly remove a package, and more generally to put their system back in a previous consistent state if need be.

Last edited by Didier Spaier; 05-01-2015 at 06:06 PM. Reason: Missing word added
 
1 members found this post helpful.
Old 05-01-2015, 06:48 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Installing packages with "make install" is not considered to be a best practice, but if you do do it, the standard practice is to copy the source directories to /usr/local/src.

In that case, the command to list all "packages" you "installed" with "make install" would be "ls /usr/local/src".

As mentioned, it's better to use "make install" to build a Slackware package:

Code:
mkdir -p /tmp/packageName
make install DESTDIR=/tmp/packageName
cd /tmp/packageName
makepkg -l y -c n /tmp/package-version-arch.txz
Then you'll have a package that you can install with installpkg, and which will be under the control of Slackware's packaging tools. That's how SlackBuild scripts actually work.

As for how to list the contents of source tarballs that you've already make-installed into your filesystem and which you didn't save the source for, well, there's no way to do that on any distro. So stop doing that.

Last edited by dugan; 05-01-2015 at 06:53 PM.
 
5 members found this post helpful.
Old 05-02-2015, 04:38 AM   #8
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Rep: Reputation: 98
src2pkg or checkinstall
 
1 members found this post helpful.
  


Reply

Tags
packages, slackware, upgrade



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
Built-in keyboard hub requires manually making configs for every usb device. Fix? Holering Linux - Hardware 1 07-06-2013 06:30 PM
How to upgrade kernel in rhel6/centos6 with internet. manually download and upgrade. Gil@LQ Linux - Kernel 3 03-12-2012 05:07 PM
Edgy and manually compiled modules... Tinkster Ubuntu 1 12-23-2006 12:43 PM
Preventing aptitude installing a package that I have built manually Simon Fisher Debian 3 06-30-2006 04:48 AM
Will 'aptitude upgrade or dist-upgrade' downgrade manually installed deb package? Akhran Debian 3 03-14-2006 02:40 PM

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

All times are GMT -5. The time now is 07:24 PM.

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