Bought text books for my classes every year except my senior year. The ones that I did buy books for, sold them as soon as I could, as "new" versions come out almost on an annual basis. "Oh we forgot a comma in that sentence on page 236, time for a new version"
I like to keep them. Looking at them on my shelf reminds me of the stuff I read in them. And a lot of books lose more than %50 value within a year or two after you buy them, which just doesn't make it worth it to me.
I kept all of my Psyc books because they can be used as references for papers in future college course. My Math books i shipped to my kid when she was in HS because she was bored with HS math. I do have a few Criminal Justice books that I have holding ip something to keep it level. I keep the history and Western Civ books because they are interesting to reread. No I don't sell my books.
Depending on your major, I would keep the ones that you could use as reference in your career.
The rest I would sell back to your college bookstore or to Amazon.
Amazon will pay for shipping and give you an Amazon gift card.
I kept ALL of my text books as well as every notebook, journal and FILE from my associates, undergrad and grad(s) degrees. Why? Because that is MY intellectual property that I went through hell to get.