LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-18-2008, 10:11 AM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
apt-get -b -f installfromsource ?


Hello,

I would like to install from source in one command line, or one single operation (sucess or not)... like :

Code:
apt-get -b -f installfromsource xcompmgr
and not:
Code:
apt-get -b source packagename
dpkg -i packagename-versionblabla.deb   # I dont want this line
Is that possible somehow ? (if not with use of | / tricks?)
Thanks

Last edited by frenchn00b; 05-31-2008 at 08:13 AM.
 
Old 05-19-2008, 03:56 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Code:
apt-get -b source packagename && dpkg -i packagename-versionblabla.deb
What's wrong with that? Varying version numbering? Use asterisk or something, if you're sure there are no other packages named the same, but with different version number..

I bet you don't install that much software from source that you couldn't type two commands instead of one
 
Old 05-19-2008, 01:16 PM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by b0uncer View Post
Code:
apt-get -b source packagename && dpkg -i packagename-versionblabla.deb
What's wrong with that? Varying version numbering? Use asterisk or something, if you're sure there are no other packages named the same, but with different version number..

I bet you don't install that much software from source that you couldn't type two commands instead of one
or well.. I am bit scared that it ll mess up all. Learning bash slowly slowly ... sorry that I am slow.
I have got that maybe, I would have to create a temp maybe :

Code:
ISO=`mktemp debXXX`
cd "$ISO"
apt-get -b source packagename
dpkg -i *.deb
cd ..
rm -rf "$ISO"
bit dirty n00b coding thousand lines

--
Edit:
Is apt-get -b source done by root secured? normally apt-get -b source is rather for $, then sudo dpkg -i *.deb
Edit2:
btw to spawner & bouncer, I just got the 'Debian Mug' 2 days ago to confirm the fact of one Debian Happy Tux more ! (one Debian geek more )

Last edited by frenchn00b; 05-19-2008 at 01:20 PM.
 
Old 05-19-2008, 05:12 PM   #4
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
but the thing is that maybe it should check is the file is present in /usr/bin
with
Code:
if [ `whereis xcompmgr`  == "" ] ; then 
    ## start the 
ISO=`mktemp debXXX`
cd "$ISO"
apt-get -b source packagename
dpkg -i *.deb
cd ..
rm -rf "$ISO"
fi
But does .orig.tar.gz , dsc, and diff file applicable for all distributions, I mean so for the day that we change to etch => testing
(with the apt-dist upgrade)

does apt-src independant for upgrading the distro;

I mean I am lazy to remake all the time another apt-src sources list and packages for all distro upgrades... (every years)
 
Old 05-31-2008, 08:14 AM   #5
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Problem with fetching first the source :


I am encoutering now the following problem:

the sources are on a site, but you need the libs

hence to install the libs with -f , fetch first, would be perfect.

Could it be possible to hack that apt-src to make it more powerful and compiling more straightforward/easier?
 
  


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
Howabout apt-get update ; apt-get upgrade -f -y --force-yes in the crontab every week frenchn00b Debian 1 04-05-2008 07:47 AM
LXer: Apt-get remove SUSE; apt-get install Etch LXer Syndicated Linux News 0 05-26-2007 07:46 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
knoppix 3.4 and no apt-setup how to fix info install apt-file + base-config maximalred Debian 0 10-16-2004 06:36 PM
rh9 xd2 apt apt-get problem fix and solution transeunt Red Hat 0 12-16-2003 10:54 PM

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

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