LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-28-2010, 07:45 AM   #16
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33

I edited my last post. Also, I was wondering what the -l meant in the tail command.
It is not said in here : http://unixhelp.ed.ac.uk/CGI/man-cgi?tail

(oh ok it's the number one not a L lol)

Last edited by elishac; 02-28-2010 at 07:47 AM.
 
Old 02-28-2010, 07:47 AM   #17
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Ok, just noticed your post 13 which looks more adequate.

Now, if you have both files in the same directory run the following command:
Code:
diff -e original.txt packages.txt > p2install.txt
That command will compare the two files that are equally formatted and write the differences (the lines that are in packages.txt but not in original.txt) to the file p2install.txt.

Kind regards,

Eric
 
Old 02-28-2010, 07:49 AM   #18
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
Originally Posted by elishac View Post
I edited my last post. Also, I was wondering what the -l meant in the tail command.
It is not said in here : http://unixhelp.ed.ac.uk/CGI/man-cgi?tail

(oh ok it's the number one not a L lol)
Correct, that's why you got the last ten lines instead of only the last one. It should have been the number 1 (one).

Kind regards,

Eric

Last edited by EricTRA; 02-28-2010 at 07:50 AM.
 
Old 02-28-2010, 07:51 AM   #19
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Ok I did. The resulting file contains 1620 lines. There are some weird lines though.
For example the first ones are :
1277a
zliblg-dev
.
1270a
 
Old 02-28-2010, 07:56 AM   #20
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
1620 lines? Wow, did you have so much 'stuff' installed on your previous system?

The first line and the last line can be deleted with the following commands, since they will only give you errors. The last line normally should only contain a . (point).
Code:
sed -i 1d p2install.txt
will delete the first line.
Next count the lines with the following:
Code:
wc -l p2install
and use the number in the following command:
Code:
sed -i <number>d p2install.txt
where you should replace <number> with the number you get from the wc command in order to delete the last line.

Then the final result should be a file with only names of packages.

Kind regards,

Eric
 
Old 02-28-2010, 08:15 AM   #21
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
errr nope didn't work. This has to do with how diff works I think.
All over the file, every now and then there's a line with only one '.', followed by a line with a number and a letter.
Let's take some lines in the middle of p2install :

.
154a
firefox-3.0
firefox-3.0-branding
firefox-3.0-gnome-support
.
151a
filezilla
filezilla-common
.

I'm under the impression that you think there's only a point in the beginning, but they are everywhere.
 
Old 02-28-2010, 08:21 AM   #22
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Yeah that definitely has to do with diff. Will have to look into diff a bit deeper. Can you mail me the p2install.txt file so I have something to test on?

Kind regards,

Eric
 
Old 02-28-2010, 08:47 AM   #23
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

Back again, feeling a bit silly. You have the two files, original.txt and packages.txt right? Which are in the same format, containing a package name on each line.

We only need to know the difference between the two files, so I found this command in the Linux Power Tools and would like you to run this.
Code:
comm -13 original.txt packages.txt > p2install.txt
This command compares the two files (who are both in alfabetical order) and normally show three columns, the first one listing what original.txt has in particular, the second one what packages.txt has in particular and the third one what they both have in their list. By giving the option -13 we're suppressing the first and the third column and only listing what's particular in packages.txt, thus knowing what packages need to be installed.

I hope this makes sense. Can you run that command and let me know what the output is?

Kind regards,

Eric
 
Old 02-28-2010, 08:50 AM   #24
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Yes this seems to work better. 1030 lines.
 
Old 02-28-2010, 08:51 AM   #25
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Ok, and they are just the package names? No weird stuff in there?

Kind regards,

Eric
 
Old 02-28-2010, 08:52 AM   #26
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Nothing weird, apparently.
 
Old 02-28-2010, 08:56 AM   #27
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Good, then now you'll have to go through that list and delete the packages you don't want (the ones that caused your initial problem). I don't remember what it was, but it had something to do with pam if I remember correct.

You'll have to delete those ones you don't want because the next command I'm asking you to run will go through that list and install all the listed packages without asking for confirmation.

Kind regards,

Eric
 
Old 02-28-2010, 09:02 AM   #28
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Wow, but how am I supposed to know that ?
I don't know 1% of the names that are in there.

I'm not that familiar with the 'packages' notion. If I install all the packages that are listed in this file, will the softwares be installed as well ?

I find it weird that some of the names listed there are already in the basic installation, such as open office for instance.

And some of the packages are written more than once.
For example :
openoffice.org-help-cs
openoffice.org-help-da
openoffice.org-help-de
openoffice.org-help-en-gb
openoffice.org-help-es
...
 
Old 02-28-2010, 09:09 AM   #29
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

A lot of those packages are libraries to software or language files also, like the once you indicated for openoffice. I can give you the command to install everything that's in that file but I'm afraid that it'll cause the same problem you had before with the authentication. That's why I ask you to go through the list. Whenever you have a doubt you can post it here. If you don't know what a package is for, you can ask Google and you'll know instantly for what it's needed. Also if you install things that are not needed, they're easily removed later one.

My main concern is that you need to delete the packages that caused your initial problem, the one that got your trouble started, the one that 'killed' your authentication procedure. I'm just trying to avoid that you get thrown into a vicious circle.

I'm on the phone right now, but in a while I'll look through your posts to see if I can find it.

Kind regards,

Eric
 
Old 02-28-2010, 09:24 AM   #30
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi elishac,

I just went through your post in regards to the previous problem you had. It was the Linux-PAM-0.77 package you compiled from source, you didn't install it using the package manager. So, I'm going to assume it will not be in the list. Can you run through the p2install.txt file to see if there is something mentioning Linux-PAM and post here?

Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
reinstallation changd Linux - Newbie 1 07-07-2006 04:13 PM
Win98 reinstallation michaelc187 General 2 11-05-2004 11:43 AM
Reinstallation! Jmcatch742 Linux - Newbie 3 10-02-2004 06:44 PM
Reinstallation: Doin' it right! mattp Linux - Newbie 40 03-08-2004 10:20 PM
reinstallation Nay Linux - Newbie 10 12-21-2003 08:58 AM

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

All times are GMT -5. The time now is 10:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration