[SOLVED] Konsole limited scrollback/history

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Konsole limited scrollback/history

Postby RoyD » Feb 18th, '14, 11:15

Hi All
I did a full install and all is up and running quite quickly. I have done this a few times so in an earlier install i was has provided some commands that helps me to install all my apps back really easy. I thought I should update the list now that I am running Mageia 4 on KDE so I ran the code
Code: Select all
rpm -qa --qf '%{NAME}\n' | sort
but it only provides a list of programs starting from L and finishing at Z; it should show all from A to Z. It worked correctly in Mageia 2. I know there are programs on my PC from A to L. Does Konsole have a maximum display output as I have exported to a text file and it shows 21 pages?
Any ideas?
Last edited by RoyD on Feb 19th, '14, 06:24, edited 2 times in total.
Using Mageia 5 KDE 32bit on an Intel(R) Core(TM)2 Quad CPU Q6600, Asus P5K-E, XFX GeForce 8800 GTS 512mb, 4096 MB ram
User avatar
RoyD
 
Posts: 139
Joined: Jan 7th, '12, 06:33
Location: New Zealand

Re: Cli command not working correctly

Postby jkerr82508 » Feb 18th, '14, 13:06

I believe that the default is 1000 lines. To change this use Konsole - Settings - Edit Profile - Scrolling

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: Cli command not working correctly

Postby doktor5000 » Feb 18th, '14, 20:56

RoyD wrote:it should show all from A to Z. It worked correctly in Mageia 2. I know there are programs on my PC from A to L. Does Konsole have a maximum display output as I have exported to a text file and it shows 21 pages?
Any ideas?

Yep, write the list directly into a file

Code: Select all
rpm -qa --qf '%{N}\n' | sort > packages.txt
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18073
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Konsole limited scrollback/history

Postby jiml8 » Feb 18th, '14, 22:32

In addition to the other suggestions, you could do it this way:
Code: Select all
rpm -qa --qf '%{NAME}\n' | sort | less
and read it in the pager.
Last edited by doktor5000 on Feb 18th, '14, 22:40, edited 1 time in total.
Reason: removed fullquote
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09

Re: [Solved] Konsole limited scrollback/history

Postby RoyD » Feb 19th, '14, 06:33

Thanks All
All suggestions work but I will use
Code: Select all
rpm -qa --qf '%{N}\n' | sort > packages.txt
as this makes it easy to create for the script.
Thanks once again for all your support Roy
Using Mageia 5 KDE 32bit on an Intel(R) Core(TM)2 Quad CPU Q6600, Asus P5K-E, XFX GeForce 8800 GTS 512mb, 4096 MB ram
User avatar
RoyD
 
Posts: 139
Joined: Jan 7th, '12, 06:33
Location: New Zealand

Re: [SOLVED] Konsole limited scrollback/history

Postby doktor5000 » Feb 19th, '14, 21:37

Just keep in mind that you cannot feed all the packages in one go to urpmi e.g. via urpmi $(cat packages.txt)
but do it either in chunks of say 250 packages, or in a for or while loop.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18073
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Konsole limited scrollback/history

Postby RoyD » Feb 20th, '14, 05:31

Actually the code I run is
Code: Select all
    urpmi.update -a
    while read line; do
       urpmi --auto $line
    done < YOUR-FILE

Ken-Bergen provided this code.
I have already run the command and I have had no problems this time or last time but if you suggest I run this in smaller chunks then I will.
Using Mageia 5 KDE 32bit on an Intel(R) Core(TM)2 Quad CPU Q6600, Asus P5K-E, XFX GeForce 8800 GTS 512mb, 4096 MB ram
User avatar
RoyD
 
Posts: 139
Joined: Jan 7th, '12, 06:33
Location: New Zealand

Re: [SOLVED] Konsole limited scrollback/history

Postby Ken-Bergen » Feb 20th, '14, 10:57

Roy: The key word in the Doktor's post was "or".

The while loop in the code you're using installs one package at a time along with any of it's dependencies, you can't do it in chunks smaller than that,
Ken
Ken-Bergen
 
Posts: 1019
Joined: Mar 30th, '11, 02:45
Location: Chilliwack, BC, Canada

Re: [SOLVED] Konsole limited scrollback/history

Postby RoyD » Feb 21st, '14, 06:07

Thanks for pointing that out Ken and a big thank you for providing this code it works a treat. So simple to run and it installs so much. :)
Using Mageia 5 KDE 32bit on an Intel(R) Core(TM)2 Quad CPU Q6600, Asus P5K-E, XFX GeForce 8800 GTS 512mb, 4096 MB ram
User avatar
RoyD
 
Posts: 139
Joined: Jan 7th, '12, 06:33
Location: New Zealand

Re: [SOLVED] Konsole limited scrollback/history

Postby Ken-Bergen » Feb 21st, '14, 06:29

I take no credit for the code, it was just something passed onto me many years ago.

The only downside I see is if you use
Code: Select all
urpme --auto-orphans
Say package "A" requires package "Q".
When the script goes to install package "Q" urpmi sees that it's already installed and it gets marked as manually installed and will not be included in the list of orphan packages.
Ken
Ken-Bergen
 
Posts: 1019
Joined: Mar 30th, '11, 02:45
Location: Chilliwack, BC, Canada

Re: [SOLVED] Konsole limited scrollback/history

Postby RoyD » Feb 21st, '14, 07:05

Since I do not worry about using auto orphans at all, ever; can it cause a problem?
Using Mageia 5 KDE 32bit on an Intel(R) Core(TM)2 Quad CPU Q6600, Asus P5K-E, XFX GeForce 8800 GTS 512mb, 4096 MB ram
User avatar
RoyD
 
Posts: 139
Joined: Jan 7th, '12, 06:33
Location: New Zealand

Re: [SOLVED] Konsole limited scrollback/history

Postby Ken-Bergen » Feb 21st, '14, 07:14

RoyD wrote:Since I do not worry about using auto orphans at all, ever; can it cause a problem?
In that case no.
Ken
Ken-Bergen
 
Posts: 1019
Joined: Mar 30th, '11, 02:45
Location: Chilliwack, BC, Canada

Re: [SOLVED] Konsole limited scrollback/history

Postby yankee495 » Feb 23rd, '14, 08:11

Welcome back RoyD,

I'm guessing you got it going. Cool, I hope it is running good for you this time. I may have you mixed up but I think you was the one with the square problem. If not, welcome to Mageia anyway!

And nice code Ken, the power of Linux amazes me. There is a zillion ways to do things.
There are 10 types of people, those who understand binary & those who don't.
Main Desktop
http://www.overclock.net/lists/display/view/id/3960066
yankee495
 
Posts: 433
Joined: May 25th, '12, 13:10
Location: Carthage, Mo. USA

Re: [SOLVED] Konsole limited scrollback/history

Postby RoyD » Feb 23rd, '14, 09:01

I was the one with square problem and decided it was easier just to do a full install. I am into backups across windows and linux machines at home (900gb). Having this little bit of code makes it so easy to have everything installed back to normal in a couple of hours. Needs some adjustments but nothing major.
Using Mageia 5 KDE 32bit on an Intel(R) Core(TM)2 Quad CPU Q6600, Asus P5K-E, XFX GeForce 8800 GTS 512mb, 4096 MB ram
User avatar
RoyD
 
Posts: 139
Joined: Jan 7th, '12, 06:33
Location: New Zealand


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest