From karlp at ourldsfamily.com Tue Mar 16 01:44:50 2010 From: karlp at ourldsfamily.com (Karl Pearson) Date: Mon, 15 Mar 2010 19:44:50 -0600 Subject: Package Manager Question Message-ID: Hi all, I use Fedora on my server (email, web, etc.) and have been using Linux Mint on my desktop and laptop. I've noticed something that has caused me to ask this question. First, what I've noticed: When I update a package using that package's 'Check For Update' feature on the Help menu (Virtualbox is a prime example), Linux Mint, which uses dpkg, the debian package manager, automatically updates the repository indexes on my PC and shows the package installed when I run Synaptic. I don't remember YumX ever doing this, or any other RPM front-end, or rpm itself from the commandline. If I didn't install a package from the repositories, rpm didn't know it was there. Do you know if this has been "fixed" (if it's actually broken)? I'm going to install a new server with CentOS soon, and have toyed with the idea of using it as my workstation OS as well. Thoughts? TIA, --- Karl Pearson Karlp at ourldsfamily.com Owner/Administrator of the sites at http://ourldsfamily.com --- "To mess up your Linux PC, you have to really work at it; to mess up a microsoft PC you just have to work on it." --- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. --Benjamin Franklin --- Children seldom misquote you. In fact, they usually repeat word for word what you shouldn't have said. --- From ricks at nerd.com Tue Mar 16 17:26:45 2010 From: ricks at nerd.com (Rick Stevens) Date: Tue, 16 Mar 2010 10:26:45 -0700 Subject: Package Manager Question In-Reply-To: References: Message-ID: <4B9FBF55.1050706@nerd.com> On 03/15/2010 06:44 PM, Karl Pearson wrote: > Hi all, > > I use Fedora on my server (email, web, etc.) and have been using Linux > Mint on my desktop and laptop. > > I've noticed something that has caused me to ask this question. First, > what I've noticed: > > When I update a package using that package's 'Check For Update' feature on > the Help menu (Virtualbox is a prime example), Linux Mint, which uses > dpkg, the debian package manager, automatically updates the repository > indexes on my PC and shows the package installed when I run Synaptic. > > I don't remember YumX ever doing this, or any other RPM front-end, or rpm > itself from the commandline. If I didn't install a package from the > repositories, rpm didn't know it was there. > > Do you know if this has been "fixed" (if it's actually broken)? > > I'm going to install a new server with CentOS soon, and have toyed with > the idea of using it as my workstation OS as well. What you're experiencing is standard yum practice. It doesn't know about repos unless it has a config for it. A config is a stanza inside a file in the /etc/yum.repos.d directory. A stanza starts with the name of the repo in square brackets, e.g.: [fedora] Following that is a number of things which control how yum interacts with the repo. One of the most important is: enabled=[0|1] If the stanza has "enabled=1", then yum will check and/or use it. If it has "enabled=0", then it's ignored. Default is "enabled=0" for any stanza that doesn't have it explicitly defined. You can force a disabled repo ("enabled=0") to be scanned by adding: --enablerepo= on the yum command line before any commands. Example: yum --enablerepo=livna update The standard way of checking for updates interactively is by doing a yum update It'll tell you if there are things that need updating. If there are, it'll ask you if you want to do the update now. If you way "yes", the the update process begins. If you want just want to check for updates non-interactively (e.g. in a script), use: yum check-update which will return a return code of 100 if there are things that need updating, 1 if an error occurs and 0 if there are no updates. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, C2 Hosting ricks at nerd.com - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - I.R.S.: We've got what it takes to take what you've got! - ---------------------------------------------------------------------- From karlp at ourldsfamily.com Tue Mar 16 18:12:09 2010 From: karlp at ourldsfamily.com (Karl Pearson) Date: Tue, 16 Mar 2010 12:12:09 -0600 Subject: Package Manager Question In-Reply-To: <4B9FBF55.1050706@nerd.com> References: <4B9FBF55.1050706@nerd.com> Message-ID: <910d0474bbf9f59106e747c0fb058ea0.squirrel@webmail.ourldsfamily.com> On Tue, March 16, 2010 11:26 am, Rick Stevens wrote: > On 03/15/2010 06:44 PM, Karl Pearson wrote: >> Hi all, >> >> I use Fedora on my server (email, web, etc.) and have been using Linux >> Mint on my desktop and laptop. >> >> I've noticed something that has caused me to ask this question. First, >> what I've noticed: >> >> When I update a package using that package's 'Check For Update' feature >> on >> the Help menu (Virtualbox is a prime example), Linux Mint, which uses >> dpkg, the debian package manager, automatically updates the repository >> indexes on my PC and shows the package installed when I run Synaptic. >> >> I don't remember YumX ever doing this, or any other RPM front-end, or >> rpm >> itself from the commandline. If I didn't install a package from the >> repositories, rpm didn't know it was there. >> >> Do you know if this has been "fixed" (if it's actually broken)? >> >> I'm going to install a new server with CentOS soon, and have toyed with >> the idea of using it as my workstation OS as well. > > What you're experiencing is standard yum practice. It doesn't know > about repos unless it has a config for it. > > A config is a stanza inside a file in the /etc/yum.repos.d directory. > A stanza starts with the name of the repo in square brackets, e.g.: > > [fedora] > > Following that is a number of things which control how yum interacts > with the repo. One of the most important is: > > enabled=[0|1] > > If the stanza has "enabled=1", then yum will check and/or use it. If > it has "enabled=0", then it's ignored. Default is "enabled=0" for any > stanza that doesn't have it explicitly defined. > > You can force a disabled repo ("enabled=0") to be scanned by adding: > > --enablerepo= > > on the yum command line before any commands. Example: > > yum --enablerepo=livna update > > The standard way of checking for updates interactively is by doing a > > yum update > > It'll tell you if there are things that need updating. If there are, > it'll ask you if you want to do the update now. If you way "yes", the > the update process begins. > > If you want just want to check for updates non-interactively (e.g. in a > script), use: > > yum check-update > > which will return a return code of 100 if there are things that need > updating, 1 if an error occurs and 0 if there are no updates. I've been using yum for years, and like it, but that wasn't my question. I'm wondering if yum has the same capability (yet) that dpkg has of knowing what's been installed, even if it's done through the package's own update process, like Virtualbox or any other package that has a [Help > About > CheckForUpdates] feature. Karl > ---------------------------------------------------------------------- > - Rick Stevens, Systems Engineer, C2 Hosting ricks at nerd.com - > - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - > - - > - I.R.S.: We've got what it takes to take what you've got! - > ---------------------------------------------------------------------- > > _______________________________________________ > Redhat-install-list mailing list > Redhat-install-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-install-list > To Unsubscribe Go To ABOVE URL or send a message to: > redhat-install-list-request at redhat.com > Subject: unsubscribe > --- Karl Pearson Karlp at ourldsfamily.com Owner/Administrator of the sites at http://ourldsfamily.com --- "To mess up your Linux PC, you have to really work at it; to mess up a microsoft PC you just have to work on it." --- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. --Benjamin Franklin --- Children seldom misquote you. In fact, they usually repeat word for word what you shouldn't have said. --- From ricks at nerd.com Fri Mar 19 17:42:41 2010 From: ricks at nerd.com (Rick Stevens) Date: Fri, 19 Mar 2010 10:42:41 -0700 Subject: Package Manager Question In-Reply-To: <910d0474bbf9f59106e747c0fb058ea0.squirrel@webmail.ourldsfamily.com> References: <4B9FBF55.1050706@nerd.com> <910d0474bbf9f59106e747c0fb058ea0.squirrel@webmail.ourldsfamily.com> Message-ID: <4BA3B791.8000406@nerd.com> On 03/16/2010 11:12 AM, Karl Pearson wrote: > > > > On Tue, March 16, 2010 11:26 am, Rick Stevens wrote: >> On 03/15/2010 06:44 PM, Karl Pearson wrote: >>> Hi all, >>> >>> I use Fedora on my server (email, web, etc.) and have been using Linux >>> Mint on my desktop and laptop. >>> >>> I've noticed something that has caused me to ask this question. First, >>> what I've noticed: >>> >>> When I update a package using that package's 'Check For Update' feature >>> on >>> the Help menu (Virtualbox is a prime example), Linux Mint, which uses >>> dpkg, the debian package manager, automatically updates the repository >>> indexes on my PC and shows the package installed when I run Synaptic. >>> >>> I don't remember YumX ever doing this, or any other RPM front-end, or >>> rpm >>> itself from the commandline. If I didn't install a package from the >>> repositories, rpm didn't know it was there. >>> >>> Do you know if this has been "fixed" (if it's actually broken)? >>> >>> I'm going to install a new server with CentOS soon, and have toyed with >>> the idea of using it as my workstation OS as well. >> >> What you're experiencing is standard yum practice. It doesn't know >> about repos unless it has a config for it. >> >> A config is a stanza inside a file in the /etc/yum.repos.d directory. >> A stanza starts with the name of the repo in square brackets, e.g.: >> >> [fedora] >> >> Following that is a number of things which control how yum interacts >> with the repo. One of the most important is: >> >> enabled=[0|1] >> >> If the stanza has "enabled=1", then yum will check and/or use it. If >> it has "enabled=0", then it's ignored. Default is "enabled=0" for any >> stanza that doesn't have it explicitly defined. >> >> You can force a disabled repo ("enabled=0") to be scanned by adding: >> >> --enablerepo= >> >> on the yum command line before any commands. Example: >> >> yum --enablerepo=livna update >> >> The standard way of checking for updates interactively is by doing a >> >> yum update >> >> It'll tell you if there are things that need updating. If there are, >> it'll ask you if you want to do the update now. If you way "yes", the >> the update process begins. >> >> If you want just want to check for updates non-interactively (e.g. in a >> script), use: >> >> yum check-update >> >> which will return a return code of 100 if there are things that need >> updating, 1 if an error occurs and 0 if there are no updates. > > I've been using yum for years, and like it, but that wasn't my question. > I'm wondering if yum has the same capability (yet) that dpkg has of > knowing what's been installed, even if it's done through the package's own > update process, like Virtualbox or any other package that has a [Help> > About> CheckForUpdates] feature. No. yum uses rpm's database to identify what's already installed and the differences between that and data it finds in the repos that are in its config for things that are "available". Ideally packages should cooperate with rpm when they install, but they usually don't. One could run an auxiliary database update I suppose, but most tarball installs don't have a convenient "here's the list of files I'm installing" that the scanner could use to identify what file belongs to what package. Indeed, a tarball install stretches the concept of "package" quite a bit. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, C2 Hosting ricks at nerd.com - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - Hard work has a future payoff. Laziness pays off now. - ---------------------------------------------------------------------- From karlp at ourldsfamily.com Sat Mar 20 07:10:57 2010 From: karlp at ourldsfamily.com (Karl Pearson) Date: Sat, 20 Mar 2010 01:10:57 -0600 Subject: Package Manager Question In-Reply-To: <4BA3B791.8000406@nerd.com> References: <4B9FBF55.1050706@nerd.com> <910d0474bbf9f59106e747c0fb058ea0.squirrel@webmail.ourldsfamily.com> <4BA3B791.8000406@nerd.com> Message-ID: <08d4201dd463b02b9fd7dbae5161d426.squirrel@webmail.ourldsfamily.com> On Fri, March 19, 2010 11:42 am, Rick Stevens wrote: > On 03/16/2010 11:12 AM, Karl Pearson wrote: >> >> >> >> On Tue, March 16, 2010 11:26 am, Rick Stevens wrote: >>> On 03/15/2010 06:44 PM, Karl Pearson wrote: >>>> Hi all, >>>> >>>> I use Fedora on my server (email, web, etc.) and have been using Linux >>>> Mint on my desktop and laptop. >>>> >>>> I've noticed something that has caused me to ask this question. First, >>>> what I've noticed: >>>> >>>> When I update a package using that package's 'Check For Update' >>>> feature >>>> on >>>> the Help menu (Virtualbox is a prime example), Linux Mint, which uses >>>> dpkg, the debian package manager, automatically updates the repository >>>> indexes on my PC and shows the package installed when I run Synaptic. >>>> >>>> I don't remember YumX ever doing this, or any other RPM front-end, or >>>> rpm >>>> itself from the commandline. If I didn't install a package from the >>>> repositories, rpm didn't know it was there. >>>> >>>> Do you know if this has been "fixed" (if it's actually broken)? >>>> >>>> I'm going to install a new server with CentOS soon, and have toyed >>>> with >>>> the idea of using it as my workstation OS as well. >>> >>> What you're experiencing is standard yum practice. It doesn't know >>> about repos unless it has a config for it. >>> >>> A config is a stanza inside a file in the /etc/yum.repos.d directory. >>> A stanza starts with the name of the repo in square brackets, e.g.: >>> >>> [fedora] >>> >>> Following that is a number of things which control how yum interacts >>> with the repo. One of the most important is: >>> >>> enabled=[0|1] >>> >>> If the stanza has "enabled=1", then yum will check and/or use it. If >>> it has "enabled=0", then it's ignored. Default is "enabled=0" for any >>> stanza that doesn't have it explicitly defined. >>> >>> You can force a disabled repo ("enabled=0") to be scanned by adding: >>> >>> --enablerepo= >>> >>> on the yum command line before any commands. Example: >>> >>> yum --enablerepo=livna update >>> >>> The standard way of checking for updates interactively is by doing a >>> >>> yum update >>> >>> It'll tell you if there are things that need updating. If there are, >>> it'll ask you if you want to do the update now. If you way "yes", the >>> the update process begins. >>> >>> If you want just want to check for updates non-interactively (e.g. in a >>> script), use: >>> >>> yum check-update >>> >>> which will return a return code of 100 if there are things that need >>> updating, 1 if an error occurs and 0 if there are no updates. >> >> I've been using yum for years, and like it, but that wasn't my question. >> I'm wondering if yum has the same capability (yet) that dpkg has of >> knowing what's been installed, even if it's done through the package's >> own >> update process, like Virtualbox or any other package that has a [Help> >> About> CheckForUpdates] feature. > > No. yum uses rpm's database to identify what's already installed and > the differences between that and data it finds in the repos that are in > its config for things that are "available". > > Ideally packages should cooperate with rpm when they install, but they > usually don't. One could run an auxiliary database update I suppose, > but most tarball installs don't have a convenient "here's the list of > files I'm installing" that the scanner could use to identify what file > belongs to what package. Indeed, a tarball install stretches the > concept of "package" quite a bit. Indeed it does. I do some of those. The VirtualBox uses a .deb install, so dpkg does know it's installed, and does update the database. Also, when running Synaptic, it shows Virtualbox as having been installed, and the updated version, even though that version isn't in the repository database. That's what I wish Yum would be able to do. Karl > ---------------------------------------------------------------------- > - Rick Stevens, Systems Engineer, C2 Hosting ricks at nerd.com - > - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - > - - > - Hard work has a future payoff. Laziness pays off now. - > ---------------------------------------------------------------------- > > _______________________________________________ > Redhat-install-list mailing list > Redhat-install-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-install-list > To Unsubscribe Go To ABOVE URL or send a message to: > redhat-install-list-request at redhat.com > Subject: unsubscribe > --- Karl Pearson Karlp at ourldsfamily.com Owner/Administrator of the sites at http://ourldsfamily.com --- "To mess up your Linux PC, you have to really work at it; to mess up a microsoft PC you just have to work on it." --- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. --Benjamin Franklin --- Children seldom misquote you. In fact, they usually repeat word for word what you shouldn't have said. --- From ricks at nerd.com Mon Mar 22 16:21:32 2010 From: ricks at nerd.com (Rick Stevens) Date: Mon, 22 Mar 2010 09:21:32 -0700 Subject: Package Manager Question In-Reply-To: <08d4201dd463b02b9fd7dbae5161d426.squirrel@webmail.ourldsfamily.com> References: <4B9FBF55.1050706@nerd.com> <910d0474bbf9f59106e747c0fb058ea0.squirrel@webmail.ourldsfamily.com> <4BA3B791.8000406@nerd.com> <08d4201dd463b02b9fd7dbae5161d426.squirrel@webmail.ourldsfamily.com> Message-ID: <4BA7990C.60100@nerd.com> On 03/20/2010 12:10 AM, Karl Pearson wrote: >> On 03/16/2010 11:12 AM, Karl Pearson wrote: >> Ideally packages should cooperate with rpm when they install, but they >> usually don't. One could run an auxiliary database update I suppose, >> but most tarball installs don't have a convenient "here's the list of >> files I'm installing" that the scanner could use to identify what file >> belongs to what package. Indeed, a tarball install stretches the >> concept of "package" quite a bit. > > Indeed it does. I do some of those. The VirtualBox uses a .deb install, so > dpkg does know it's installed, and does update the database. Also, when > running Synaptic, it shows Virtualbox as having been installed, and the > updated version, even though that version isn't in the repository > database. That's what I wish Yum would be able to do. Yum could scan all known databases, however it was designed to be used with rpm and as such, just looks at the rpm database. Synaptic is a "second generation" tool for use with dpkg- and deb-based systems. You could extend yum to handle dpkg, deb, and any other "packaging" system. It's just python, after all. Not that I care for python...any language that depends on indention to define loops and control structs should have its creator taken to the woodshed. Didn't we have enough of that with Fortran and WATFOR 25 years ago? ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, C2 Hosting ricks at nerd.com - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - "If you can't fix it...duct tape it!" -- Tim Allen - ---------------------------------------------------------------------- From prpednek at cisco.com Tue Mar 23 07:35:01 2010 From: prpednek at cisco.com (Prasad Pednekar) Date: Tue, 23 Mar 2010 13:05:01 +0530 Subject: Installing RHEl5.4 on 64 bit box with additional driverdisk(megasr) Message-ID: <000e01caca5b$5a040cd0$0e0c2670$@com> Hi All, Pardon me for my knowledge about RHEL installation process using a kickstart file, as I me being a newbie to this. Currently we are creating a custom RHEL5.4 DVD, the issue lies when we try to load the megasr driverdisk which we have copied onto the DVD, We want to load the megasr driver in place of the default ahci drivers as to configure RAID on the box. But with various different options tried out we are blocked and cannot proceed further. Please let me know if you need any further information. Thanks and Regards, Prasad Pednekar. -------------- next part -------------- An HTML attachment was scrubbed... URL: From guifre.bosch at gmail.com Tue Mar 23 14:38:56 2010 From: guifre.bosch at gmail.com (Guifre Bosch Fabregas) Date: Tue, 23 Mar 2010 15:38:56 +0100 Subject: question about license Message-ID: <630294ec1003230738i21aab633y9882b5fc0b50173d@mail.gmail.com> I installed a Red Hat 5.3 without the license. Now I have the license. I can connect to this server via SSH. How can I apply the license to have access to all repositories? thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jayeola at gmail.com Tue Mar 23 14:49:40 2010 From: jayeola at gmail.com (john maclean) Date: Tue, 23 Mar 2010 14:49:40 +0000 Subject: question about license In-Reply-To: <630294ec1003230738i21aab633y9882b5fc0b50173d@mail.gmail.com> References: <630294ec1003230738i21aab633y9882b5fc0b50173d@mail.gmail.com> Message-ID: <4170c1721003230749i644b474fk2e7e0dc0d1eef004@mail.gmail.com> I am away from the machine now but it's something like rhn_register from the command line. On 23 March 2010 14:38, Guifre Bosch Fabregas wrote: > I installed a Red Hat 5.3 without the license. > Now I have the license. I can connect to this server via SSH. > > How can I apply the license to have access to all repositories? > > thanks! > > _______________________________________________ > Redhat-install-list mailing list > Redhat-install-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-install-list > To Unsubscribe Go To ABOVE URL or send a message to: > redhat-install-list-request at redhat.com > Subject: unsubscribe > -- John Maclean 07739 171 531 MSc (DIC) Enterprise Linux Systems Engineer From mwhitney at pima.edu Tue Mar 23 14:49:56 2010 From: mwhitney at pima.edu (Whitney, Matthew) Date: Tue, 23 Mar 2010 07:49:56 -0700 Subject: question about license In-Reply-To: <630294ec1003230738i21aab633y9882b5fc0b50173d@mail.gmail.com> References: <630294ec1003230738i21aab633y9882b5fc0b50173d@mail.gmail.com> Message-ID: You can use either the GUI tool "rhn_register" or the command line tool "rhnreg_ks". Both will accomplish what you're looking for. Hope this helps, Matt From: redhat-install-list-bounces at redhat.com [mailto:redhat-install-list-bounces at redhat.com] On Behalf Of Guifre Bosch Fabregas Sent: Tuesday, March 23, 2010 7:39 AM To: redhat-install-list at redhat.com Subject: question about license I installed a Red Hat 5.3 without the license. Now I have the license. I can connect to this server via SSH. How can I apply the license to have access to all repositories? thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From ricks at nerd.com Tue Mar 23 16:45:17 2010 From: ricks at nerd.com (Rick Stevens) Date: Tue, 23 Mar 2010 09:45:17 -0700 Subject: Installing RHEl5.4 on 64 bit box with additional driverdisk(megasr) In-Reply-To: <000e01caca5b$5a040cd0$0e0c2670$@com> References: <000e01caca5b$5a040cd0$0e0c2670$@com> Message-ID: <4BA8F01D.9010404@nerd.com> On 03/23/2010 12:35 AM, Prasad Pednekar wrote: > Hi All, > > Pardon me for my knowledge about RHEL installation process using a > kickstart file, as I me being a newbie to this. > > Currently we are creating a custom RHEL5.4 DVD, the issue lies when we > try to load the megasr driverdisk which we have copied onto the DVD, > > We want to load the megasr driver in place of the default ahci drivers > as to configure RAID on the box. > > But with various different options tried out we are blocked and cannot > proceed further. > > Please let me know if you need any further information. I assume you've tried adding a "device scsi megasr" option to your kickstart file. Failing that, you could create a driver disk and either put its contents in the root of a partition or put the disk image somewhere on your network and use the "driverdisk" option: driverdisk /dev/hda1 --type=ext3 driverdisk --source=ftp://host/path/to/dd.img driverdisk --source=http://host/path/to/dd.img driverdisk --source=nfs:host:/path/to/dd.img It is rather difficult to force-feed a driver into a kickstart system beyond those methods. The only other way I can think of is to respin the DVD image. You need to create a directory on the disk you can expand the images of the disk in and bugger the installer's kernel and that of Anaconda by changing the modules.alias file to call in your driver for the PCI ID of your card in place of the ahci driver, something like: WAS: alias pci:v000011ABd00006121sv*sd*bc*sc*i* ahci CHANGE TO: alias pci:v000011ABd00006121sv*sd*bc*sc*i* megasr You also need to put the megasr driver in the appropriate bits of the /lib/modules/`uname -r`/kernel/drivers/ata directory, then respin the DVD image completely. Assuming you have something more recent than RHEL 5.4 (say Fedora 7 or later), there are tools around to do this pretty easily (e.g. a tool called "revisor"). Those would probably be your best bet and I'd highly recommend it if you're going to be respinning images a lot. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, C2 Hosting ricks at nerd.com - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - LOOK OUT!!! BEHIND YOU!!! - ----------------------------------------------------------------------