Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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 :
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?
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?
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.
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
...
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.