Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[Solved]Howto use portage after pkg unpacked in to /var/...

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
pingtoo
Advocate
Advocate
User avatar
Posts: 2180
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

[Solved]Howto use portage after pkg unpacked in to /var/...

  • Quote

Post by pingtoo » Fri Jan 23, 2026 7:03 pm

Hi,

currently I have usage problem for package (buildah) I like to debug and possible alter its behavior.

I know I can use emerge to unpack the package into /var/tmp/portage/app-containers/buildah, but I don't know how to do compile and install using content in /var/tmp/portage/app-containers/buildah. Can someone give me some instruction on how? much appreciated!

pingtoo.
Last edited by pingtoo on Fri Jan 23, 2026 7:42 pm, edited 1 time in total.
Top
freke
Veteran
Veteran
Posts: 1136
Joined: Thu Jan 23, 2003 3:17 pm
Location: Somewhere in Denmark
Contact:
Contact freke
Website

  • Quote

Post by freke » Fri Jan 23, 2026 7:17 pm

Is ebuild (/usr/bin/ebuild) what you're looking for?
Lets you do the different stages one by one of installing a package.

https://wiki.gentoo.org/wiki/Stepping_through_ebuilds
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Jan 23, 2026 7:18 pm

  • ebuild /var/db/repos/gentoo/app-containers/buildah/buildah-1.41.0.ebuild prepare
  • Inspect, edit sources, etc.
  • ebuild /var/db/repos/gentoo/app-containers/buildah/buildah-1.41.0.ebuild install
  • If you can test it from the installation staging area, then test it here. Otherwise, ebuild /var/db/repos/gentoo/app-containers/buildah/buildah-1.41.0.ebuild qmerge to install it to the live filesystem.
  • When done, ebuild /var/db/repos/gentoo/app-containers/buildah/buildah-1.41.0.ebuild clean. This wipes out the package's directory under /var/tmp/portage, including any changes you made to the source. Be sure to have a manual copy of any changes you want to keep.
When finished, use diff -u to compare the prepare'd sources to your changes. Save the result in an appropriate file under /etc/portage/patches so that future builds using emerge apply your changes automatically.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2180
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Fri Jan 23, 2026 7:40 pm

freke,

Yes, ebuild is the one I am looking for. Thank you very much,

Hu,

Thank you very much for your step by step instructions. Much appreciated.

Pingtoo.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy