LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-29-2017, 08:54 AM   #16
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925

Quote:
Originally Posted by cynwulf View Post
The change I was referring to is the change from "apt-get source" to "apt-src".

As I understand it "apt" also replaced "apt-get" at some point?
In a fashion, apt-src acts like an apt-get for source packages rather than binary packages, gathering together several commands involving source package management, whereas apt-get source does only one thing i.e. downloads package source code.

apt-get will be here for many moons to come. In a similar way to apt-src, the aim of apt is to gather together the functionality of apt-get, apt-cache, apt-mark etc. in a more cohesive and user-friendly way. I'm not a great fan of it (to me it's a little bit like the "We have 5 competing standards, let's create an all-encompassing one. Ah, now we have 6 competing standards" type of situation), but hey ho.
 
1 members found this post helpful.
Old 03-29-2017, 12:55 PM   #17
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,106
Blog Entries: 2

Rep: Reputation: 258Reputation: 258Reputation: 258
So what's the difference between apt-src. and apt-get source --compile?

I still use the separate apt-get/apt-cache, as apt itself is missing functionality.
 
Old 03-29-2017, 01:46 PM   #18
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by replica9000 View Post
So what's the difference between apt-src. and apt-get source --compile?

I still use the separate apt-get/apt-cache, as apt itself is missing functionality.
Both apt-get source --compile and apt-src install --build essentially call dpkg-buildpackage to build the package. As to the differences in the ways that they do so (command-line options, checks etc.), I don't know to be honest, sorry.

One of the annoying things with the apt command is that Mint has provided Mint-specific Python scripts to add functionality to the command, so the functionality that's available on, say, Ubuntu isn't the same as that which available on Mint. That's one of the reasons I'm sticking to apt-get and friends (until they can sort out a proper cross-distro implementation of apt in any case). The apt command just seems to me to confuse issues, especially when providing support.
 
Old 03-29-2017, 02:18 PM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
This command will download the source code packages, and build pakage(s) :

Code:
$ apt-get -b source [name]=[version]

Example : $ apt-get -b source libvalhalla=2.0.0-2ubuntu

Prerequisites : $ sudo apt-get install fakeroot (to build the package as unprivileged user)
$ sudo apt-get build-dep libvalhalla ( get the dependencies used for building [name] ).
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Downloading source Debianized packages. edbarx Debian 1 07-02-2014 02:17 AM
Distinguish between freeware, shareware, open source software and closed source ... turbomen Linux - Newbie 1 11-16-2010 02:49 AM
gnome: Fedora/CentOS source .bash_profile but Ubuntu/Debian source .bashrc centguy Linux - Software 6 01-17-2010 08:35 PM
iptables dnat working, but server logs local source IP instead of original source IP Nothsa Linux - Server 3 02-14-2008 05:34 PM
LXer: Red Hat to set up open-source software store: source LXer Syndicated Linux News 0 03-09-2007 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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