LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-30-2019, 05:01 AM   #1
EdgeKing810
LQ Newbie
 
Registered: Jul 2019
Posts: 3

Rep: Reputation: Disabled
Angry LFS - Telling pacman about manually installed packages


Hello, I recently completed my LFS system and installed some packages from BLFS already. I was also successful in setupping an Internet connection and in installing the pacman package manager. The issue I am getting is that pacman isn't being able to 'know' that I already installed some packages.

So, each time I try to install a package, pacman will try to install dependencies but will fail in doing so because I have already installed these dependencies manually before and their files are already there.

I tried researching on this and I found pacreport from pacutils to apparently help in identifying those 'missing' packages. The problem is that I can't install pacutils as the only way I'm finding to install it is via pacman which will again fail due to the already satisfied dependencies.

Any help or tip please?
 
Old 07-30-2019, 05:50 AM   #2
EdgeKing810
LQ Newbie
 
Registered: Jul 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Small edit

I installed pacman and packages AFTER the LFS build. I didn't install pacman during the chapter 6 or something and installed packages with. It is after building LFS that I installed pacman and I would like to of some sort 'indicate it' that packages are installed.
 
Old 07-30-2019, 10:50 AM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,152
Blog Entries: 6

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
https://wiki.archlinux.org/index.php/Pacman

If this is the pacman that you are using, it uses a database to keep track of software and dependencies. If you you install things with pip, make-make install, pacman won't know about it. That's why arch has a build system.

https://wiki.archlinux.org/index.php/Arch_Build_System

https://wiki.archlinux.org/index.php/Makepkg

Another words, compile something into a package, then use pacman to install it. So that pacman database has a record.
Quote:
It is after building LFS that I installed pacman and I would like to of some sort 'indicate it' that packages are installed.
If it is outside of the package managers database, the it won't know about it.
 
Old 08-09-2019, 08:32 AM   #4
EdgeKing810
LQ Newbie
 
Registered: Jul 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Yeah, I got it and was able to do what I planned to. I restarted again from scratch and made PKGBUILD files to install the packages.

For anyone else that'll be reading this post, I followed the first 3 steps of this guide first: https://github.com/benvd/lfs-pacman

I want to precise that you can (I did it) install all the necessary packages for the temporary system using make (basically as per the guide). Additionally, you'll need to install some packages like pacman and fakeroot too.

Then, I cloned the above repo and placed the packages I previously downloaded as per the guide in the respective folders. Sometimes I needed to edit or create the PKGBUILD files so that they corresponded to the right package version and right commands.

Finally, after chroot-ing, I installed all the packages to the final system as a non-root user I created using `makepkg --stripchecksums` and compiled it as the root user using `pacman -U <name>.tar.xz`. When my OS was made, I managed to get WiFi to work with dhclient from dhcpcd, wpa_supplicant and an /etc/resolv.conf file that contained the DNS nameservers of Google.

You'll once again need to install packages like pacman and fakeroot to the final system btw. Step 5 of the following link may help. It is also handy to read the contents the links I mention as you move along.

http://lists.linuxfromscratch.org/pi...ch/003304.html

Wrote a blog post about the biggest issues I faced:
https://blog.kinesisgames.net/2019-0...e6-kinesis-os/

Thanks to everyone who replied!

Last edited by EdgeKing810; 08-09-2019 at 08:41 AM.
 
  


Reply



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
Building LFS with pacman bstaletic Linux From Scratch 5 09-23-2014 11:30 AM
Why do we need pacman-key if pacman checks md5? Mr. Alex Arch 5 03-09-2012 05:05 PM
Anyone else 'pacman -Sy' instead of simply 'pacman -S'-ing packages? Kenny_Strawn Arch 15 03-23-2011 01:09 PM
Error compiling Pacman on LFS 6.1.1 Vampirite Linux From Scratch 13 04-11-2007 10:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01: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
Open Source Consulting | Domain Registration