LinuxQuestions.org
Help answer threads with 0 replies.
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 04-16-2019, 07:19 PM   #1
AnneRanch
Member
 
Registered: Oct 2018
Posts: 198

Rep: Reputation: 12
how to change package version


I have build a package from source , unfortunately I did not pay attention and the build application (checkinnstall) build the package as default version of 2.0-1.

It would fit better into the project if I could change the version #.
I have not found how, I can only read the current parameters of the package.

Any idea how to do that?




Code:
$ apt show glib-2.0
Package: glib-2.0
Version: 2.0-1
Status: install ok installed
Priority: extra
Section: checkinstall
Maintainer: root@jim-desktop
Installed-Size: 65.7 MB
Provides: glib
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: glib-BLUEZ
 
Old 04-16-2019, 07:54 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,349
Blog Entries: 28

Rep: Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147
You don't mention your distro, but, generally speaking, since you installed it from sources, your package manager will not have it in its list for updating.

My guess is that your best bet is to find remove (you can do that from the build directory by issuing the command make uninstall as root), the find the sources for the newer version and compile the newer version.
 
Old 04-16-2019, 08:23 PM   #3
AnneRanch
Member
 
Registered: Oct 2018
Posts: 198

Original Poster
Rep: Reputation: 12
Thanks,
I'll think I better rerun the package build and set the version to match the main project.
 
Old 04-16-2019, 08:30 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
if you are building from source, you have 2 avenues, one already mentioned, the other is to convert it to the package type of your distro. Most distos have put in place a method to do this. you'll have to look in to that part of it. Still if it is not provided by the repos. it is a rinse and repeat situation.
 
Old 04-16-2019, 09:37 PM   #5
AnneRanch
Member
 
Registered: Oct 2018
Posts: 198

Original Poster
Rep: Reputation: 12
I am not sure that would help since the checkinstall already build "Debian" package.
But I have already rerun the build and now chasing dependencies. Fun never stops.
 
Old 04-17-2019, 08:12 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
yep keeps one busy. I use a home made build script to automate the building and installing the deps first then the main app last.

But I use Slackware. They Incorporated the ./configure , make , make install into there package system. that makes it a lot easier when making a package. VOID Linux, I just run my slackuilds I've modded on it, if what I am looking for is not in the repo. which is a not much situation in that arena on void as well. maybe like one or two things for that.

You could create a script the pulls the latest source for each one ( wget ) then checks version, untar, configure, make and make install in order to make it a little easier for you.

You'd still have to set up a method to uninstall the older versions first, but I think you love a good challenge.

Or switch to Slackware, where that'd be a cinch to do then say debian.

Last edited by BW-userx; 04-17-2019 at 08:19 AM.
 
Old 04-17-2019, 08:58 AM   #7
AnneRanch
Member
 
Registered: Oct 2018
Posts: 198

Original Poster
Rep: Reputation: 12
I was really not ready to "back-paddle" from the task.
SO I am taking the easy ways to do that and not ready to spent time to "automate" this process.

After all this is done I like to really dig into "make" and associated "automation".
I have been avoiding learning "make" for few years now, but I really need to bite the bullet.


I found this "chekinstall" and it initially worked on my first "configure / make /make install".
But as I said - I did not pay much attention to options, but I think it has "dependencies" option which I need now.
The "problem" is I still have to run "configure" and then run "checkistall" before I can option it - obviously.

I find it frustrating to learn that each distro have its own ways to accomplish stuff.
Not sure if that is the best way to advance art of programming.
For example the original "bluez" package is not officially on github and what is there is older version of it.

Speaking of version , I need to post my latest hitch.
Later...
 
Old 04-17-2019, 09:35 AM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by AnneRanch View Post
I was really not ready to "back-paddle" from the task.
SO I am taking the easy ways to do that and not ready to spent time to "automate" this process.

After all this is done I like to really dig into "make" and associated "automation".
I have been avoiding learning "make" for few years now, but I really need to bite the bullet.


I found this "chekinstall" and it initially worked on my first "configure / make /make install".
But as I said - I did not pay much attention to options, but I think it has "dependencies" option which I need now.
The "problem" is I still have to run "configure" and then run "checkistall" before I can option it - obviously.

Speaking of version , I need to post my latest hitch.
Later...
https://debian-administration.org/ar...h_checkinstall

that looks like a nice piece of software, it wasn't around, or I had no idea of its existence a few years back when I tasked myself to creating deb's for a project of mine.

Code:
As root run:

checkinstall -D make install
being the aftermath of running configure. still it cuts making a deb down to what, two commands?
Code:
./confgure ( options )
checkinstall -D make install
that's a lot sweeter then what I remember having to go through.
 
  


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
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
how to find right rpm version package for my redhat 5 version? jayasiva1982 Red Hat 4 04-11-2014 07:52 AM
Upgrading Apache 2.2.16 (package version) to the latest version 2.2.26 (compiled vers Renaud06 Debian 8 11-27-2013 06:59 PM
Version 1.2506 < version 1.516 for a given package? stf92 General 4 07-11-2012 08:39 PM
[SOLVED] Package requires earlier version of an installed package Doug Hutcheson Linux - Software 3 12-30-2010 09:55 PM

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

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