LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-08-2022, 09:53 AM   #1
tuxuser1
Member
 
Registered: Nov 2021
Posts: 165

Rep: Reputation: Disabled
Download source package


Hi,
perhaps a stupid question but i can't find a way to download a source package except download every single file.
What is the best way to download a source package ?
For example, i want to download cryptsetup package from here,
to apply a patch and run
Code:
cryptsetup.Slackbuild
How could i do ?

Best regards
 
Old 07-08-2022, 10:00 AM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,699

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
lftp will do this for you. To grab a whole source directory use this
Code:
lftp -c "open https://mirrors.slackware.com/slackware/slackware64-current/source/a ; mirror cryptsetup"
Or this can work too, but will download some unnecssary index files and others, but it works
Code:
wget -r -np -nd -l1 https://mirrors.slackware.com/slackware/slackware64-current/source/a/cryptsetup/
Another scenario you may run into is a SlackBuild with multiple source files that need to be downloaded. For that you can do

Code:
source <projectname>.info
wget $DOWNLOAD

Last edited by Daedra; 07-08-2022 at 04:30 PM.
 
4 members found this post helpful.
Old 07-08-2022, 10:03 AM   #3
tuxuser1
Member
 
Registered: Nov 2021
Posts: 165

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Daedra View Post
lftp will do this for you. To grad a whole source directory use this
Code:
lftp -c "open https://mirrors.slackware.com/slackware/slackware64-current/source/a ; mirror cryptsetup"
Or this can work too, but will download some unnecssary index files and others, but it works
Code:
wget -r -np -nd -l1 https://mirrors.slackware.com/slackware/slackware64-current/source/a/cryptsetup/
Another scenario you may run into is a SlackBuild with multiple source files that need to be downloaded. For that you can do

Code:
source <projectname>.info
wget $DOWNLOAD
Perfect!
Thanks
Mark as solved
 
1 members found this post helpful.
  


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
Building package from source isn't replacing default package (Ubuntu) ajck Linux - Software 2 06-27-2013 12:38 AM
To manually download the kernel source package grautu Ubuntu 4 02-28-2010 03:35 AM
binary kernel package == source package ? narc Ubuntu 4 07-29-2007 09:28 AM

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

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