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 12-29-2020, 10:02 PM   #1
centguy
Member
 
Registered: Feb 2008
Posts: 627
Blog Entries: 1

Rep: Reputation: 48
equivalence of apt-get source vim in rpm camp?


Recently I learned apt-get source vim; apt-get build-dep vim (just an example).

The equivalence of apt-get build-dep vim in CentOS is
yum-builddep vim

but I cannot find the equivalence of apt-get source vim.

The closest i get is
yumdownloader vim

but after
Quote:
rpm2cpio ./vim-enhanced-7.4.629-8.el7_9.x86_64.rpm | cpio -idmv
i still not see the source files but the precompiled binary, which is not what
I want.
 
Old 12-29-2020, 11:36 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
The Centos wiki has a page on installing from source. It has a paragraph on obtaining SRPMs (i.e. source rpm files).

I don't have a running Centos system in front of me right now, but a simple yum search vim might help as well. Not sure though.
 
Old 12-30-2020, 01:49 AM   #3
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by centguy View Post
Code:
rpm2cpio ./vim-enhanced-7.4.629-8.el7_9.x86_64.rpm | cpio -idmv
Wrong package. Source RPMs end in .src.rpm. yumdownloader must be explicitly told that you want source:
Code:
yumdownloader --source vim

Last edited by shruggy; 12-30-2020 at 07:07 AM.
 
2 members found this post helpful.
Old 12-31-2020, 02:31 AM   #4
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
shruggy, you are certainly most helpful!!
I learned that two apt-get commands from you in my other posts!

Quote:

yum-builddep vim
yumdownloader --source vim
rpm2cpio ./vim-7.4.629-8.el7_9.src.rpm | cpio -idmv
tar -xjf vim-7.4.tar.bz2
cd vim74/
./configure
make
make install
it works!
 
  


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
LXer: Character equivalence classes 2: the nature of equivalence LXer Syndicated Linux News 0 06-24-2020 01:36 AM
[SOLVED] Fedora shows 'man vim' but when execute 'vim' got "bash: vim: command not found..." ? flash_os Linux - Newbie 19 01-03-2015 11:56 PM
[SOLVED] Installing vim-gnome or vim-gtk dependency issues with apt, aptitude, synaptic alagenchev Linux - Software 3 05-15-2012 10:33 AM
Switching from vim to vim -g from inside vim iDragoon Linux - Software 4 05-15-2009 11:46 AM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 04:26 PM

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

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