LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-29-2017, 02:49 AM   #1
DexterMorgan
LQ Newbie
 
Registered: Apr 2015
Posts: 13

Rep: Reputation: Disabled
apt-get source [package] but need older version


Hi,

I need to download sourcecode for a package, but when I tried to download it with apt-get source [package] it was the wrong version, and I need an older version.

So, how to I get an older version of the sourcecode?
 
Old 05-29-2017, 03:41 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,430

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
If you want a precise answer, show name and version of [unknown source code]
. http://www.linuxquestions.org/linux/...Ask_a_Question
. http://www.catb.org/~esr/faqs/smart-questions.html


Old Debian http://archive.debian.org/debian-archive/debian/pool/

Old Ubuntu http://old-releases.ubuntu.com/ubuntu/pool/


-
 
Old 05-29-2017, 05:16 AM   #3
DexterMorgan
LQ Newbie
 
Registered: Apr 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Yeah, I should've been more specific,

I'm running Linux Mint 18.1
Trying to download source code for cryptsetup:

apt-get source cryptsetup

this will get me source code for cryptsetup 1.6.6 and I need to get the sourcecode for cryptsetup 1.6.1.

How do i accomplish this?

Last edited by DexterMorgan; 05-29-2017 at 05:17 AM.
 
Old 05-29-2017, 05:30 AM   #4
dejank
Member
 
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229

Rep: Reputation: Disabled
Mint uses Ubuntu packages/repositories, so you should look there, unless you search for Mint specific packages. As for that version of package, it is located here:

https://packages.ubuntu.com/trusty/admin/cryptsetup

You will find link for source package on that page. Use your favorite download tool like wget, or simply download it with your browser.

edit: Oh, yes, you will need all 3 files listed there under source package, if you plan to build something from it in Debian way.

Last edited by dejank; 05-29-2017 at 05:35 AM.
 
Old 05-29-2017, 06:05 AM   #5
DexterMorgan
LQ Newbie
 
Registered: Apr 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dejank View Post
Mint uses Ubuntu packages/repositories, so you should look there, unless you search for Mint specific packages. As for that version of package, it is located here:

https://packages.ubuntu.com/trusty/admin/cryptsetup

You will find link for source package on that page. Use your favorite download tool like wget, or simply download it with your browser.

edit: Oh, yes, you will need all 3 files listed there under source package, if you plan to build something from it in Debian way.
I'm trying to apply the nuke-patch for cryptsetup:
http://www.linuxquestions.org/questi...-a-4175606841/

But no one seem to know how this can be done.

I found another way to to this by:
Quote:
git clone https://github.com/offensive-securit...etup-nuke-keys
cd cryptsetup-1.6.1
patch -p1 < ../cryptsetup-nuke-keys/cryptsetup_1.6.1+nuke_keys.diff
sudo dpkg-buildpackage -b -u4c
cd ..
dpkg -i libcryptsetup*.deb
dpkg -i cryptsetup*.deb
But I'm getting strange errors when trying to patch it from downloading 1.6.1 source code from here:
https://packages.ubuntu.com/trusty/admin/cryptsetup

Any chance you could walk me through it?

I'm not used at all to build someting from sourcecode or patch.

-----------
I tried to download cryptsetup sourcecode by:

apt-get source cryptsetup

but it gave me crypsetup-1.6.6 and unfortunantly nuke-keys doesn't seem to exist for 1.6.6
-----------

Last edited by DexterMorgan; 05-29-2017 at 06:08 AM.
 
Old 05-29-2017, 06:25 AM   #6
dejank
Member
 
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229

Rep: Reputation: Disabled
Quote:
I tried to download cryptsetup sourcecode by:

apt-get source cryptsetup

but it gave me crypsetup-1.6.6 and unfortunantly nuke-keys doesn't seem to exist for 1.6.6
For that part, I've already gave you answer and where you can find 1.6.1.

Quote:
Any chance you could walk me through it?

I'm not used at all to build someting from sourcecode or patch.
Sorry, I do not feel competent enough when it comes to building packages and applying patches to guide you step by step through it.
 
Old 05-29-2017, 07:15 AM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
Quote:
Originally Posted by DexterMorgan View Post
I'm trying to apply the nuke-patch for cryptsetup:
http://www.linuxquestions.org/questi...-a-4175606841/

But no one seem to know how this can be done.
Why don't you contact the creators of the patch and ask them?

https://www.offensive-security.com/contact-us/
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot deinstal or reinstall prot/package. Error: An older version already exists redir Linux - Newbie 1 04-09-2010 10:36 AM
Install an older version of a package using apt-get asookazian Linux - Newbie 1 03-28-2010 04:25 AM
Debian package wants an older version of a library Scorper Debian 3 05-14-2006 10:00 PM
older and newer version of a package at the same time Ayman.mashal Linux - Newbie 1 07-29-2005 10:05 PM
how to install an older version of a package... haora Linux - Newbie 1 05-27-2005 09:48 AM

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

All times are GMT -5. The time now is 09:57 AM.

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