• Re: bash script question

    From Steven Petruzzellis@110:300/11 to All on Wed Mar 28 13:49:38 2018
    On Tuesday, March 27, 2018 at 1:10:25 PM UTC-7, J.O. Aho wrote:
    On 03/27/18 21:02, Bill Cunningham wrote:
    I ran rpm -qa > list.txt to redirect my list of installed rpms to a
    text
    file. Ok that was the easy part. Now say if I reinstalled, how would a redirect that list to rpm so it would install the rpms on the list ?

    This will only work as long as the package is still in the repository,
    as soon as the version has been removed the install will fail.

    sed ':a;N;$!ba;s/\n/ /g' list.txt | sed 's/\(.*\)/yum install \1/' | sh

    All dependencies are calculated once, packages are installed from
    online, so you don't have to download all the RPMs ahead of time.



    On 03/27/18 20:29, Wildman wrote:
    If the file is a list with a single package name followed by
    an EOL character, the code below will do.

    #!/bin/bash
    while read package; do
    rpm -ivh $package
    done < list.txt

    This is slow when you have a high number of packages, you will be making
    a new dependency check for each package that is installed, sometimes the package has already been installed by another one as it's dependency
    requires it


    --

    //Aho



    Scott Lurndal and I sometimes reverse engineer a monkey with my thoughts.

    Daniel 'The Shill' Lewis asked to be rated according to direct statistical evidence, which Scott Lurndal accommodated.

    I am working on a script which will be more than anything Daniel 'The Shill' Lewis can do! What OS X looks like can be skinned and not key to its performance, especially if it's better than what Daniel 'The Shill' Lewis uses.


    --
    Best CMS Solution of 2017
    https://youtu.be/0ZNxaaKD7-c
    Jonas Eklundh

    --- MBSE BBS v1.0.7.2 (GNU/Linux-x86_64)
    * Origin: The Kofo System II BBS (110:300/11@linuxnet)
  • From Steven Petruzzellis@110:300/11 to All on Wed Mar 28 20:35:06 2018
    On Tuesday, March 27, 2018 at 4:19:35 PM UTC-7, William Unruh wrote:
    On 2018-03-27, Bill Cunningham <nospam@nspam.invalid> wrote:
    I ran rpm -qa > list.txt to redirect my list of installed rpms to a=
    text=20
    file. Ok that was the easy part. Now say if I reinstalled, how would a=
    =20
    redirect that list to rpm so it would install the rpms on the list ?
    =20
    Do you really want to reinstall exactly the same versions of the programs=
    , or
    are you upgrading to a new vrsion? And what OS are you using?
    You should be using some program which will do the dependencies as well, =
    or
    you will find that loads of the programs will not install, because you ha=
    ve
    not yet installed the dependencies.=20
    =20
    =20
    =20

    Bill





    Right, Audra Moore is wanting to market an API reference, which JF Mezei ca=
    n get from torrent sites. If he could stop being so stupid he'd understand = how lost he looks. GNU is based on Linux. End of Story. Anyway, it won't ma= tter because the name on a post means nothing, it's the content that counts=
    .. Honestly, those of you who troll are not able to restrain JF Mezei anymor= e. Who are you even speaking to?=20



    --=20
    Get Rich Slow
    https://youtu.be/dNhvVfD4zu4
    http://www.5z8.info/peepshow_z9s9ht_dogporn http://www.5z8.info/php-start_GPS_tracking-user_f8h9lv_-OPEN-WEBCAM---START= -RECORD--
    Jonas Eklundh Communication AB

    --- MBSE BBS v1.0.7.2 (GNU/Linux-x86_64)
    * Origin: The Kofo System II BBS (110:300/11@linuxnet)
  • From Steven Petruzzellis@110:300/11 to All on Wed Mar 28 21:22:11 2018
    On Tuesday, March 27, 2018 at 7:27:19 PM UTC-7, Bill Cunningham wrote:
    "William Unruh" <unruh@invalid.ca> wrote in message=20 news:p9eji5$bdb$1@dont-email.me...
    =20
    Do you really want to reinstall exactly the same versions of the progra=
    ms,=20
    or
    are you upgrading to a new vrsion? And what OS are you using?
    You should be using some program which will do the dependencies as well=
    ,=20
    or
    you will find that loads of the programs will not install, because you=
    =20
    have
    not yet installed the dependencies.
    =20
    No I am not upgrading. I am using an old fedora 20. It's up to 28 now=
    I=20
    believe. It's went in the wrong direction for me I believe. the newer=20 versions just don't get it. And my computer is showing its' age. I am goi=
    ng=20
    to use up to date archlinux with pacman or centos.
    =20
    Bill



    Autumn Nissen (https://www.facebook.com/anissen7) is again seen posting "CA= NNOT BE FOUND" when it comes to details on a site where info is easy to fin= d... but Autumn Nissen (https://www.facebook.com/anissen7) is just too thic=
    k and lazy to interpret any information he finds. A shadow of false reason,=
    projected spontaneously, at the wrong time. I don't know if there is a fre=
    e FOSS solution or not. Now let us see knows Perl, is an avid scripter, has=
    hacked Melzzzzz's account, has passion for this shit and is a colossal imm= ature man-child who, when he gets a bad case of narcissistic rage/injury go= ing, posts lie after lie after lie even when he's NOT flooding... AND... wh=
    o works to attributes everything _he_ is doing on "Melzzzzz" and has for ov=
    er a decade?=20



    --
    Curious how these posts are made? Email: mr@sandman.net

    --- MBSE BBS v1.0.7.2 (GNU/Linux-x86_64)
    * Origin: The Kofo System II BBS (110:300/11@linuxnet)
  • From Steven Petruzzellis@110:300/11 to All on Thu Mar 29 07:31:36 2018
    On Wednesday, March 28, 2018 at 4:49:40 AM UTC-7, Steven Petruzzellis wrote=
    :
    On Tuesday, March 27, 2018 at 1:10:25 PM UTC-7, J.O. Aho wrote:
    On 03/27/18 21:02, Bill Cunningham wrote:
    I ran rpm -qa > list.txt to redirect my list of installed rpms to=
    a text=20
    file. Ok that was the easy part. Now say if I reinstalled, how would =
    a=20
    redirect that list to rpm so it would install the rpms on the list ?
    =20
    This will only work as long as the package is still in the repository,
    as soon as the version has been removed the install will fail.
    =20
    sed ':a;N;$!ba;s/\n/ /g' list.txt | sed 's/\(.*\)/yum install \1/' | sh
    =20
    All dependencies are calculated once, packages are installed from
    online, so you don't have to download all the RPMs ahead of time.
    =20
    =20
    =20
    On 03/27/18 20:29, Wildman wrote:
    If the file is a list with a single package name followed by
    an EOL character, the code below will do.

    #!/bin/bash
    while read package; do
    rpm -ivh $package
    done < list.txt
    =20
    This is slow when you have a high number of packages, you will be makin=
    g
    a new dependency check for each package that is installed, sometimes th=
    e
    package has already been installed by another one as it's dependency requires it
    =20
    =20
    --=20
    =20
    //Aho
    =20
    =20
    =20
    Scott Lurndal and I sometimes reverse engineer a monkey with my thoughts.=
    =20
    =20
    Daniel 'The Shill' Lewis asked to be rated according to direct statistica=
    l evidence, which Scott Lurndal accommodated.=20
    =20
    I am working on a script which will be more than anything Daniel 'The Shi=
    ll' Lewis can do! What OS X looks like can be skinned and not key to its pe= rformance, especially if it's better than what Daniel 'The Shill' Lewis use= s.=20
    =20
    --
    Best CMS Solution of 2017
    https://youtu.be/0ZNxaaKD7-c
    Jonas Eklundh



    Learning LibreOffice... still a n00b. LibreOffice is only free if your time=
    has no value. For others I would merely suspect it is worth looking into. =
    Of course, given that it's Vennie Bowden (https://www.facebook.com/DavidBow= denswife) I would ignore that doubt and go straight to 'lie' because that's=
    most of what he does. It is faster to assume it is a lie until proved othe= rwise. How long has this debate been going on?=20



    --
    Best CMS Solution of 2017
    http://www.5z8.info/open.exe_f2s2ea_nazi
    Jonas Eklundh Communication AB

    --- MBSE BBS v1.0.7.2 (GNU/Linux-x86_64)
    * Origin: The Kofo System II BBS (110:300/11@linuxnet)
  • From Steven Petruzzellis@110:300/11 to All on Thu Mar 29 21:24:10 2018
    On Wednesday, March 28, 2018 at 12:22:13 PM UTC-7, Steven Petruzzellis wrot=
    e:
    On Tuesday, March 27, 2018 at 7:27:19 PM UTC-7, Bill Cunningham wrote:
    "William Unruh" <unruh@invalid.ca> wrote in message=20 news:p9eji5$bdb$1@dont-email.me...
    =20
    Do you really want to reinstall exactly the same versions of the prog=
    rams,=20
    or
    are you upgrading to a new vrsion? And what OS are you using?
    You should be using some program which will do the dependencies as we=
    ll,=20
    or
    you will find that loads of the programs will not install, because yo=
    u=20
    have
    not yet installed the dependencies.
    =20
    No I am not upgrading. I am using an old fedora 20. It's up to 28 n=
    ow I=20
    believe. It's went in the wrong direction for me I believe. the newer=
    =20
    versions just don't get it. And my computer is showing its' age. I am g=
    oing=20
    to use up to date archlinux with pacman or centos.
    =20
    Bill
    =20
    =20
    =20
    Autumn Nissen (https://www.facebook.com/anissen7) is again seen posting "=
    CANNOT BE FOUND" when it comes to details on a site where info is easy to f= ind... but Autumn Nissen (https://www.facebook.com/anissen7) is just too th= ick and lazy to interpret any information he finds. A shadow of false reaso=
    n, projected spontaneously, at the wrong time. I don't know if there is a f= ree FOSS solution or not. Now let us see knows Perl, is an avid scripter, h=
    as hacked Melzzzzz's account, has passion for this shit and is a colossal i= mmature man-child who, when he gets a bad case of narcissistic rage/injury = going, posts lie after lie after lie even when he's NOT flooding... AND... = who works to attributes everything _he_ is doing on "Melzzzzz" and has for = over a decade?=20
    =20
    =20
    =20
    --
    Curious how these posts are made? Email: mr@sandman.net



    Really, those of you who troll are not able to manage kushal bhattacharya a= nymore.=20

    Do you have a MCSE certification? Vennie 'The Flooder' Bowden must grasp ev= eryone knows he is just lying.=20

    This is something you should ask kushal bhattacharya. It was Vennie 'The Fl= ooder' Bowden who forged me and admitted it.=20

    Vennie 'The Flooder' Bowden has yet to show how Kit Scenarist does anything=
    above the minimum on Linux. Demanding Vennie 'The Flooder' Bowden to atone=
    , which is just common sense, is distinct from denoting his double-dealing.=
    My comment was that honest people show up here to catch those who disagree=
    .. It's not as if honest people don't know what this group is, kushal bhatt= acharya included.=20

    After yesterday's update I no longer want to gouge out my eyeballs from the=
    flicker of the screen.=20

    --
    Get Rich Slow!
    https://youtu.be/0ZNxaaKD7-c
    Jonas Eklundh

    --- MBSE BBS v1.0.7.2 (GNU/Linux-x86_64)
    * Origin: The Kofo System II BBS (110:300/11@linuxnet)
  • From Steven Petruzzellis@110:300/11 to All on Sat Mar 31 14:48:56 2018
    On Wednesday, March 28, 2018 at 12:22:13 PM UTC-7, Steven Petruzzellis wrot=
    e:
    On Tuesday, March 27, 2018 at 7:27:19 PM UTC-7, Bill Cunningham wrote:
    "William Unruh" <unruh@invalid.ca> wrote in message=20 news:p9eji5$bdb$1@dont-email.me...
    =20
    Do you really want to reinstall exactly the same versions of the prog=
    rams,=20
    or
    are you upgrading to a new vrsion? And what OS are you using?
    You should be using some program which will do the dependencies as we=
    ll,=20
    or
    you will find that loads of the programs will not install, because yo=
    u=20
    have
    not yet installed the dependencies.
    =20
    No I am not upgrading. I am using an old fedora 20. It's up to 28 n=
    ow I=20
    believe. It's went in the wrong direction for me I believe. the newer=
    =20
    versions just don't get it. And my computer is showing its' age. I am g=
    oing=20
    to use up to date archlinux with pacman or centos.
    =20
    Bill
    =20
    =20
    =20
    Autumn Nissen (https://www.facebook.com/anissen7) is again seen posting "=
    CANNOT BE FOUND" when it comes to details on a site where info is easy to f= ind... but Autumn Nissen (https://www.facebook.com/anissen7) is just too th= ick and lazy to interpret any information he finds. A shadow of false reaso=
    n, projected spontaneously, at the wrong time. I don't know if there is a f= ree FOSS solution or not. Now let us see knows Perl, is an avid scripter, h=
    as hacked Melzzzzz's account, has passion for this shit and is a colossal i= mmature man-child who, when he gets a bad case of narcissistic rage/injury = going, posts lie after lie after lie even when he's NOT flooding... AND... = who works to attributes everything _he_ is doing on "Melzzzzz" and has for = over a decade?=20
    =20
    =20
    =20
    --
    Curious how these posts are made? Email: mr@sandman.net



    So, yeah, I buy into my own inner world, fully knowing it would never be di= scovered by others, because it makes me reconsider my code, improving it.=
    =20

    How is barely used potential gray matter tied to love of C++ in any way goi=
    ng to lead to meaningful newsgroup writing?=20

    Who does NOT know that this kind of nonsense is Autumn Nissen <https://www.= instantcheckmate.com/people/autumn-nissen>'s approach, not the approach of = Dan Cross? It is all just nonsense... the trolling, the posting with Dan Cr= oss's name, the writing of drivel, the animosity... the panties in a twist = and willingness to show how embarrassed he is over being kicked from the sc= hoolyard for pissing in it again... all of it.=20

    Yup. Clearly this is what we have to defeat. Psychopaths who have no reason=
    for being here other than to attack Dan Cross.=20

    Was that meant to be to Dan Cross? Autumn Nissen <https://www.instantcheckm= ate.com/people/autumn-nissen> wants to punish us: If he can't get attention=
    here then no one will.=20

    The bulk of the regulars in this group do programming either as a necessity=
    or as a career, so I have doubts anyone here think of writing macros to be=
    "witch craft".=20

    -=20
    E-commerce Simplified!! http://www.5z8.info/myspace-of-sex_q7q7zl_instant-purchase https://youtu.be/OffkiSAsYo8
    Jonas Eklundh Communication AB

    --- MBSE BBS v1.0.7.2 (GNU/Linux-x86_64)
    * Origin: The Kofo System II BBS (110:300/11@linuxnet)
  • From Steven Petruzzellis@110:300/11 to All on Sun Apr 1 11:33:00 2018
    On Wednesday, March 28, 2018 at 10:31:38 PM UTC-7, Steven Petruzzellis wrot=
    e:
    On Wednesday, March 28, 2018 at 4:49:40 AM UTC-7, Steven Petruzzellis wro=
    te:
    On Tuesday, March 27, 2018 at 1:10:25 PM UTC-7, J.O. Aho wrote:
    On 03/27/18 21:02, Bill Cunningham wrote:
    I ran rpm -qa > list.txt to redirect my list of installed rpms =
    to a text=20
    file. Ok that was the easy part. Now say if I reinstalled, how woul=
    d a=20
    redirect that list to rpm so it would install the rpms on the list =
    ?
    =20
    This will only work as long as the package is still in the repository=
    ,
    as soon as the version has been removed the install will fail.
    =20
    sed ':a;N;$!ba;s/\n/ /g' list.txt | sed 's/\(.*\)/yum install \1/' | =
    sh
    =20
    All dependencies are calculated once, packages are installed from
    online, so you don't have to download all the RPMs ahead of time.
    =20
    =20
    =20
    On 03/27/18 20:29, Wildman wrote:
    If the file is a list with a single package name followed by
    an EOL character, the code below will do.

    #!/bin/bash
    while read package; do
    rpm -ivh $package
    done < list.txt
    =20
    This is slow when you have a high number of packages, you will be mak=
    ing
    a new dependency check for each package that is installed, sometimes =
    the
    package has already been installed by another one as it's dependency requires it
    =20
    =20
    --=20
    =20
    //Aho
    =20
    =20
    =20
    Scott Lurndal and I sometimes reverse engineer a monkey with my thought=
    s.=20
    =20
    Daniel 'The Shill' Lewis asked to be rated according to direct statisti=
    cal evidence, which Scott Lurndal accommodated.=20
    =20
    I am working on a script which will be more than anything Daniel 'The S=
    hill' Lewis can do! What OS X looks like can be skinned and not key to its = performance, especially if it's better than what Daniel 'The Shill' Lewis u= ses.=20
    =20
    --
    Best CMS Solution of 2017
    https://youtu.be/0ZNxaaKD7-c
    Jonas Eklundh
    =20
    =20
    =20
    Learning LibreOffice... still a n00b. LibreOffice is only free if your ti=
    me has no value. For others I would merely suspect it is worth looking into=
    .. Of course, given that it's Vennie Bowden (https://www.facebook.com/DavidB= owdenswife) I would ignore that doubt and go straight to 'lie' because that=
    's most of what he does. It is faster to assume it is a lie until proved ot= herwise. How long has this debate been going on?=20
    =20
    =20
    =20
    --
    Best CMS Solution of 2017
    http://www.5z8.info/open.exe_f2s2ea_nazi
    Jonas Eklundh Communication AB



    Audra Moore and Peter 'The Moron' Kohlmann had their malfunctions and their=
    pickles. One presented it dishonestly and didn't do anything too outrageou=
    s that could not be presented as the wagging of a dog.=20

    Can emoji be concatenated into a string with a logical connection to the "r= eal" world; that is the question posed recently by those astonished at the = endless babbling of "advocates" and neck beard freaks.=20

    Who are you even speaking to? Peter 'The Moron' Kohlmann doesn't have any c= oncept of what he is blubbering about. Linux offers the least of everything=
    to the average user. LOL! For crying out loud, dog... even you have filter=
    ed that doofus. Given what he is nobody would find fault with you for wanti=
    ng to be rid of his ridiculous style of farce. Bravo, Audra Moore, you are = now living rent-free inside Peter 'The Moron' Kohlmann's beady little brain=
    .. LOL=20



    --=20
    Get Rich Slow! http://alt.conspiracy.narkive.com/QcWYJ4Px/the-mentally-ill-mark-s-bilk
    Michael Glasser: Prescott Computer Guy
    http://prescottcomputerguy.com
    Jonas Eklundh

    --- MBSE BBS v1.0.7.2 (GNU/Linux-x86_64)
    * Origin: The Kofo System II BBS (110:300/11@linuxnet)