LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2019, 11:44 PM   #1
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Rep: Reputation: Disabled
The script will print rpm packages with same version and different version


Hello Team,
i wanted The script will print rpm packages with same version and different version
 
Old 09-09-2019, 05:39 AM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by Suraj Patil View Post
Hello Team,
i wanted The script will print rpm packages with same version and different version
is the same as

"i wanted The script will print rpm packages"

I'm usually good at figuring out what someone *actually* wants/needs
but lack of *any detail* is like kryptonite to that superpower.

you could start with showing us what you have already

put it in code tags, like this


[code]

this is the code
that you have right now

[/code]


sample input and what you want the output to be will also help
again use code tags


I assume Fedora , version would help
 
Old 09-09-2019, 06:43 AM   #3
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
Quote:
Originally Posted by Suraj Patil View Post
i wanted The script will print rpm packages with same version and different version
Different from what? Same as what?

Code:
rpm -qa
prints all RPMs on the computer, all versions.
 
Old 09-09-2019, 07:16 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Suraj Patil View Post
Hello Team,
i wanted The script will print rpm packages with same version and different version
Again, we aren't on your 'team'...we volunteer here. We can help you with a script, as soon as you post what you have personally done/tried to get this done, and explain what you want. Your question isn't clear, and you show no effort of your own. Again, read the "Question Guidelines".
 
Old 09-09-2019, 07:51 AM   #5
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
im writing a script which will help me and my team to compare two machine rpm versions for e.g fedora rpm package version and rhel8 rpm package version
 
Old 09-09-2019, 07:53 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Suraj Patil View Post
im writing a script which will help me and my team to compare two machine rpm versions for e.g fedora rpm package version and rhel8 rpm package version
Great. So post what you've written, and tell us what it's not doing, or what error(s) you're getting. Also, be aware that Fedora and RHEL aren't going to line up exactly as far as package names or even package availability.

Again, we're happy to help, but YOU have to show us YOUR EFFORTS FIRST.
 
Old 09-09-2019, 08:05 AM   #7
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by Suraj Patil View Post
im writing a script which will help me and my team to compare two machine rpm versions for e.g fedora rpm package version and rhel8 rpm package version
do we get paid if we write it for you?

as has already been said by myself and others
Post what you have got already.
 
Old 09-09-2019, 08:07 AM   #8
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
allow me some time i will post what i have done and what i want
 
Old 09-09-2019, 08:09 AM   #9
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
sharing knowledge is most fundamental act of friendship , not every thing comes under money
 
Old 09-09-2019, 08:17 AM   #10
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by Suraj Patil View Post
sharing knowledge is most fundamental act of friendship , not every thing comes under money
so share what you have
we may then be able to help you and your team perform your duties
 
2 members found this post helpful.
Old 09-09-2019, 09:31 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Suraj Patil View Post
allow me some time i will post what i have done and what i want
Some time? Thought you already had the script???
Quote:
Originally Posted by Suraj Patil
sharing knowledge is most fundamental act of friendship , not every thing comes under money
Right; that's why we volunteer here, and no one is saying that we won't HELP you. What we ARE saying, is that **YOU, PERSONALLY** have to show some actual effort of your own, to do your own job, before we will assist. We aren't going to write scripts for you, period.

If you post a script, and say "It's giving me this <....> as output, when I put <....> in, but what I want to see is <....>", that's something we can help with. Saying, "I need a script to do xxx", isn't.
 
3 members found this post helpful.
Old 09-09-2019, 10:11 AM   #12
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
@Suraj Patil,

Please be cognizant that all members of LQ, including yourself are volunteers. Meanwhile, these links would be recommended for you to review.

Please also note that while you've described a script, you have not as yet posted one, and further, members have no idea what your abilities are on this subject, as well as which script language you will choose for your script. We will await updates from you containing further information that is relevant to your original question.

What makes a good issue description
Welcome to LQ

Please also note that when you perform the actions to post a new thread, the New Thread screen contains a great deal of information related to how to ask a complete, as well as effective question.

Final followup are some details from the Welcome thread:
Quote:
Here are a couple tips that will enable us to help you moving forward:
  • When asking a question, be sure to provide as many relevant details as possible. You should include the distribution and version you're using, along with hardware details, application version and exact error messages where applicable.
  • Using a descriptive title will vastly increase the number of members who see your thread, and therefore make a response significantly more likely.
    If you're actively troubleshooting an issue you should also include any steps you've already taken.
  • You may want to include how what you are experiencing differs from what you expected to experience.
  • Before posting, have you used the search function to ensure your question hasn't been asked before?
  • You can edit your post by clicking the EDIT button in the bottom right corner of your message.
If you are unwilling or unable to ask questions in a manner that allows us to help you, it's unlikely our community will be able to provide you a solution. Unfortunately, serial offenders who show wanton disregard for this request after multiple pointers may be asked to seek help elsewhere. We truly hope that isn't necessary, and assure you Linux and Open Source are extremely rewarding and well worth the learning curve in the long run.
 
1 members found this post helpful.
Old 09-09-2019, 01:33 PM   #13
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by Suraj Patil View Post
im writing a script which will help me and my team to compare two machine rpm versions for e.g fedora rpm package version and rhel8 rpm package version
You don't say which version of Fedora.

Although RHEL versions are derived from things previously tested in Fedora they are not going to be exactly the same. RHEL is designed for Production use and will typically have older versions of things than Fedora. You should NOT try to install Fedora packages on your RHEL8 system or vice-versa.

As others have said you can list what is installed by running "rpm -qa". You could try comparing the packages but need to be aware of extended versioning done on RHEL. It will show you the upstream version of a package that was installed but will then have additional versioning at the end to show RHEL's specific build. RedHat back-ports bug and security fixes into the original upstream base they used for the major OS version (e.g. RHEL6, RHEL7, RHEL8) so that the base version portion is the same thoughout the life of the major OS version. Fedora I think just uses the base upstream version since it is bleeding edge and has no need to preserve older base upstream within the major OS version.
 
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] awk: same test on same file by different scripts gives different result porphyry5 Programming 1 09-30-2012 05:26 AM
how to install rpm packages of the same version in multiple locations bvpurandare Linux - General 2 03-18-2009 04:14 PM
prevent users to run the same script at the same time, on the same machine pvpnguyen Programming 2 09-05-2007 08:52 PM
2 same packages; different version Swakoo Red Hat 3 08-30-2006 03:07 AM
Print-to-file print driver to print PDF Bill Fox Linux - General 3 05-02-2006 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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